Struct despatma_lib::OptionsAttribute[][src]

pub struct OptionsAttribute {
    pub pound_token: Pound,
    pub bracket_token: Bracket,
    pub options: Punctuated<KeyValue, Comma>,
}

Holds an outer attribute filled with key-value options.

Streams in the following form will be parsed successfully:

#[key1 = value1, bool_key2, key3 = value]

The value part of an option is optional. Thus, bool_key2 will have the value default.

Fields

pound_token: Poundbracket_token: Bracketoptions: Punctuated<KeyValue, Comma>

Trait Implementations

impl Default for OptionsAttribute[src]

impl Parse for OptionsAttribute[src]

Make OptionsAttribute parsable from a token stream

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.