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 Freeze for Args
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