pub struct FieldDecl {
pub name: String,
pub name_span: Span,
pub type_name: String,
pub type_span: Span,
pub arity: Arity,
pub attrs: Vec<Attr>,
pub docs: Option<String>,
pub span: Span,
}Expand description
A field within a ModelDecl.
Fields§
§name: StringName as written.
name_span: SpanSource location of the name alone.
type_name: StringType name as written, before resolution.
type_span: SpanSource location of the type.
arity: ArityWhether the type carried [] or ?.
attrs: Vec<Attr>@-attributes in source order.
docs: Option<String>Joined /// lines.
span: SpanSource location of the whole field.
Implementations§
Trait Implementations§
impl StructuralPartialEq for FieldDecl
Auto Trait Implementations§
impl Freeze for FieldDecl
impl RefUnwindSafe for FieldDecl
impl Send for FieldDecl
impl Sync for FieldDecl
impl Unpin for FieldDecl
impl UnsafeUnpin for FieldDecl
impl UnwindSafe for FieldDecl
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