Struct workflow_macro_tools::attributes::Args
source · pub struct Args {
pub map: HashMap<Ident, Option<Value>>,
}
Fields§
§map: HashMap<Ident, Option<Value>>
Implementations§
source§impl Args
impl Args
pub fn new() -> Args
pub fn has(&self, ident: &str) -> bool
pub fn get(&self, ident: &str) -> Option<&Option<Value>>
pub fn get_value_or<T: ToTokens>( &self, ident: &str, field: T, msg: &str ) -> Result<Option<Value>, TokenStream>
pub fn to_string_kv(&self) -> Vec<(String, String)>
pub fn allow(&self, list: &[&str]) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Args
impl !Send for Args
impl !Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
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