pub struct Attr {
pub path: String,
pub args: Vec<Arg>,
pub span: Span,
}Expand description
An @attr or @@attr, with its arguments.
Fields§
§path: StringDotted path as written, e.g. id, db.VarChar, relation.
args: Vec<Arg>Arguments, in source order.
span: SpanSource location of the attribute.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Attr
Auto Trait Implementations§
impl Freeze for Attr
impl RefUnwindSafe for Attr
impl Send for Attr
impl Sync for Attr
impl Unpin for Attr
impl UnsafeUnpin for Attr
impl UnwindSafe for Attr
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