Struct parser_database::ast::Attribute
source · pub struct Attribute {
pub name: Identifier,
pub arguments: ArgumentsList,
pub span: Span,
}
Expand description
An attribute (following @
or `@@``) on a model, model field, enum, enum value or composite
type field.
Fields§
§name: Identifier
The name of the attribute:
ⓘ
@@index([a, b, c])
^^^^^
arguments: ArgumentsList
The arguments of the attribute.
ⓘ
@@index([a, b, c], map: "myidix")
^^^^^^^^^^^^^^^^^^^^^^^^
span: Span
The AST span of the node.
Implementations§
Trait Implementations§
source§impl WithIdentifier for Attribute
impl WithIdentifier for Attribute
source§fn identifier(&self) -> &Identifier
fn identifier(&self) -> &Identifier
The identifier.
Auto Trait Implementations§
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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