pub struct ArgumentSchema<'a> {
pub valid_keys: &'a [&'a str],
pub solo_keys: &'a [&'a str],
}
Expand description
Helper structure to assist with argument parsing.
Fields§
§valid_keys: &'a [&'a str]
Describes which keys are valid.
solo_keys: &'a [&'a str]
List of keys which do not require a value.
Trait Implementations§
Source§impl<'a> Clone for ArgumentSchema<'a>
impl<'a> Clone for ArgumentSchema<'a>
Source§fn clone(&self) -> ArgumentSchema<'a>
fn clone(&self) -> ArgumentSchema<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for ArgumentSchema<'a>
impl<'a> Debug for ArgumentSchema<'a>
impl<'a> Copy for ArgumentSchema<'a>
Auto Trait Implementations§
impl<'a> Freeze for ArgumentSchema<'a>
impl<'a> RefUnwindSafe for ArgumentSchema<'a>
impl<'a> Send for ArgumentSchema<'a>
impl<'a> Sync for ArgumentSchema<'a>
impl<'a> Unpin for ArgumentSchema<'a>
impl<'a> UnwindSafe for ArgumentSchema<'a>
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