Struct schema_ast::ast::Argument
source · pub struct Argument {
pub name: Option<Identifier>,
pub value: Expression,
pub span: Span,
}
Expand description
An argument, either for attributes or for function call expressions.
Fields§
§name: Option<Identifier>
The argument name, if applicable.
ⓘ
@id(map: "myIndex")
^^^
value: Expression
The argument value.
ⓘ
@id("myIndex")
^^^^^^^^^
span: Span
Location of the argument in the text representation.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnwindSafe for Argument
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