Enum amplify_syn::MetaArg [−][src]
pub enum MetaArg {
Literal(Lit),
Path(Path),
NameValue(MetaArgNameValue),
}
Expand description
Drop-in replacement for syn::NestedMeta
, which allows to parse
attributes which can have arguments made of either literal, path or
MetaArgNameValue
expressions.
Variants
Attribute argument in form of literal
Tuple Fields of Literal
0: Lit
Attribute argument in form of a path
Tuple Fields of Path
0: Path
Attribute argument in form of name = value
expression, where value
can be any ArgValue
-representable data
Tuple Fields of NameValue
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MetaArg
impl UnwindSafe for MetaArg
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more