pub struct ModelDecl {
pub name: String,
pub name_span: Span,
pub fields: Vec<FieldDecl>,
pub block_attrs: Vec<Attr>,
pub docs: Option<String>,
pub span: Span,
}Expand description
A model declaration.
Fields§
§name: StringName as written.
name_span: SpanSource location of the name alone.
fields: Vec<FieldDecl>Fields in source order.
block_attrs: Vec<Attr>@@-attributes in source order.
docs: Option<String>Joined /// lines.
span: SpanSource location of the whole declaration.
Trait Implementations§
impl StructuralPartialEq for ModelDecl
Auto Trait Implementations§
impl Freeze for ModelDecl
impl RefUnwindSafe for ModelDecl
impl Send for ModelDecl
impl Sync for ModelDecl
impl Unpin for ModelDecl
impl UnsafeUnpin for ModelDecl
impl UnwindSafe for ModelDecl
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