Struct despatma_lib::OptionsAttribute
source · pub struct OptionsAttribute {
pub pound_token: Pound,
pub bracket_token: Bracket,
pub options: Punctuated<KeyValue, Comma>,
}Expand description
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§
source§impl Default for OptionsAttribute
impl Default for OptionsAttribute
source§fn default() -> OptionsAttribute
fn default() -> OptionsAttribute
Returns the “default value” for a type. Read more
source§impl Parse for OptionsAttribute
impl Parse for OptionsAttribute
Make OptionsAttribute parsable from a token stream
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for OptionsAttribute
impl RefUnwindSafe for OptionsAttribute
impl !Send for OptionsAttribute
impl !Sync for OptionsAttribute
impl Unpin for OptionsAttribute
impl UnwindSafe for OptionsAttribute
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