pub struct KeyValueArgs(pub HashMap<String, String>);Expand description
A command parameter type for key-value args
For example key1=value1 key2="value2 with spaces"
Tuple Fields§
§0: HashMap<String, String>Implementations§
Trait Implementations§
Source§impl Clone for KeyValueArgs
impl Clone for KeyValueArgs
Source§fn clone(&self) -> KeyValueArgs
fn clone(&self) -> KeyValueArgs
Returns a duplicate 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 Debug for KeyValueArgs
impl Debug for KeyValueArgs
Source§impl Default for KeyValueArgs
impl Default for KeyValueArgs
Source§fn default() -> KeyValueArgs
fn default() -> KeyValueArgs
Returns the “default value” for a type. Read more
Source§impl PartialEq for KeyValueArgs
impl PartialEq for KeyValueArgs
Source§impl<'a> PopArgument<'a> for KeyValueArgs
impl<'a> PopArgument<'a> for KeyValueArgs
Source§fn pop_from<'life0, 'life1, 'async_trait>(
args: &'a str,
attachment_index: usize,
_: &'life0 Context,
_: &'life1 Message,
) -> Pin<Box<dyn Future<Output = Result<(&'a str, usize, Self), (Box<dyn Error + Send + Sync>, Option<String>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn pop_from<'life0, 'life1, 'async_trait>(
args: &'a str,
attachment_index: usize,
_: &'life0 Context,
_: &'life1 Message,
) -> Pin<Box<dyn Future<Output = Result<(&'a str, usize, Self), (Box<dyn Error + Send + Sync>, Option<String>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
impl Eq for KeyValueArgs
impl StructuralPartialEq for KeyValueArgs
Auto Trait Implementations§
impl Freeze for KeyValueArgs
impl RefUnwindSafe for KeyValueArgs
impl Send for KeyValueArgs
impl Sync for KeyValueArgs
impl Unpin for KeyValueArgs
impl UnsafeUnpin for KeyValueArgs
impl UnwindSafe for KeyValueArgs
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
Source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.