pub struct SlashMap(/* private fields */);Expand description
Wrapper around HashMap<String, SlashValue>
Implementations§
Source§impl SlashMap
impl SlashMap
Sourcepub fn get_string(&self, name: &str) -> Result<String>
pub fn get_string(&self, name: &str) -> Result<String>
If SlashMap has value, call SlashValue::get_string() on it
Sourcepub fn get_integer(&self, name: &str) -> Result<i64>
pub fn get_integer(&self, name: &str) -> Result<i64>
If SlashMap has value, call SlashValue::get_integer() on it
Sourcepub fn get_boolean(&self, name: &str) -> Result<bool>
pub fn get_boolean(&self, name: &str) -> Result<bool>
If SlashMap has value, call SlashValue::get_boolean() on it
Sourcepub fn get_user(&self, name: &str) -> Result<UserOrMember>
pub fn get_user(&self, name: &str) -> Result<UserOrMember>
If SlashMap has value, call SlashValue::get_user() on it
Sourcepub fn get_channel(&self, name: &str) -> Result<PartialChannel>
pub fn get_channel(&self, name: &str) -> Result<PartialChannel>
If SlashMap has value, call SlashValue::get_channel() on it
Sourcepub fn get_role(&self, name: &str) -> Result<Role>
pub fn get_role(&self, name: &str) -> Result<Role>
If SlashMap has value, call SlashValue::get_role() on it
Sourcepub fn get_mentionable(&self, name: &str) -> Result<Mentionable>
pub fn get_mentionable(&self, name: &str) -> Result<Mentionable>
If SlashMap has value, call SlashValue::get_mentionable() on it
Auto Trait Implementations§
impl Freeze for SlashMap
impl RefUnwindSafe for SlashMap
impl Send for SlashMap
impl Sync for SlashMap
impl Unpin for SlashMap
impl UnwindSafe for SlashMap
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