Struct despatma_lib::OptionsAttribute [−][src]
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: Pound
bracket_token: Bracket
options: Punctuated<KeyValue, Comma>
Trait Implementations
impl Default for OptionsAttribute
[src]
fn default() -> OptionsAttribute
[src]
impl Parse for OptionsAttribute
[src]
Make OptionsAttribute parsable from a token stream
fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
Auto Trait Implementations
impl RefUnwindSafe for OptionsAttribute
[src]
impl !Send for OptionsAttribute
[src]
impl !Sync for OptionsAttribute
[src]
impl Unpin for OptionsAttribute
[src]
impl UnwindSafe for OptionsAttribute
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,