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

Literal

Attribute argument in form of literal

Tuple Fields of Literal

0: Lit
Path

Attribute argument in form of a path

Tuple Fields of Path

0: Path
NameValue

Attribute argument in form of name = value expression, where value can be any ArgValue-representable data

Tuple Fields of NameValue

0: MetaArgNameValue

Trait Implementations

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

Convert self directly into a TokenStream object. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Returns a Span covering the complete contents of this syntax tree node, or Span::call_site() if this node is empty. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.