Struct query_structure::ast::CompositeType
source · pub struct CompositeType {
pub span: Span,
pub inner_span: Span,
/* private fields */
}
Expand description
A type declaration in the data model. Defined by a type keyword and a block of fields that can be embedded in a model.
A composite type has no definition in the database schema, and is completely a Prisma concept. It gives type-safety to dynamic data such as JSON.
Fields§
§span: Span
The location of this type in the text representation.
inner_span: Span
The span of the inner contents.
Implementations§
source§impl CompositeType
impl CompositeType
pub fn is_commented_out(&self) -> bool
pub fn iter_fields(&self) -> impl ExactSizeIterator + Clone
Trait Implementations§
source§impl Clone for CompositeType
impl Clone for CompositeType
source§fn clone(&self) -> CompositeType
fn clone(&self) -> CompositeType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CompositeType
impl Debug for CompositeType
source§impl Index<FieldId> for CompositeType
impl Index<FieldId> for CompositeType
source§impl WithDocumentation for CompositeType
impl WithDocumentation for CompositeType
source§fn documentation(&self) -> Option<&str>
fn documentation(&self) -> Option<&str>
The documentation string, if defined.
source§impl WithIdentifier for CompositeType
impl WithIdentifier for CompositeType
source§fn identifier(&self) -> &Identifier
fn identifier(&self) -> &Identifier
The identifier.
Auto Trait Implementations§
impl RefUnwindSafe for CompositeType
impl Send for CompositeType
impl Sync for CompositeType
impl Unpin for CompositeType
impl UnwindSafe for CompositeType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more