Struct query_structure::ast::Field
source · pub struct Field {
pub field_type: FieldType,
pub arity: FieldArity,
pub attributes: Vec<Attribute>,
/* private fields */
}
Expand description
A field definition in a model or a composite type.
Fields§
§field_type: FieldType
The field’s type.
ⓘ
name String
^^^^^^
arity: FieldArity
The arity of the field.
attributes: Vec<Attribute>
The attributes of this field.
ⓘ
name String @id @default("lol")
^^^^^^^^^^^^^^^^^^^
Implementations§
Trait Implementations§
source§impl WithAttributes for Field
impl WithAttributes for Field
source§fn attributes(&self) -> &[Attribute]
fn attributes(&self) -> &[Attribute]
The attributes.
source§impl WithDocumentation for Field
impl WithDocumentation for Field
source§fn documentation(&self) -> Option<&str>
fn documentation(&self) -> Option<&str>
The documentation string, if defined.
source§impl WithIdentifier for Field
impl WithIdentifier for Field
source§fn identifier(&self) -> &Identifier
fn identifier(&self) -> &Identifier
The identifier.
Auto Trait Implementations§
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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