pub struct Configure {
pub bot_id: BotId,
pub set: BTreeMap<String, String>,
pub unset: Vec<String>,
}Expand description
bot.configure: the owner sets or clears values of the settings the bot’s manifest
declares. With neither, it only reads them.
Fields§
§bot_id: BotIdThe bot.
set: BTreeMap<String, String>Values to set, by key.
unset: Vec<String>Keys to clear (back to their default).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Configure
impl<'de> Deserialize<'de> for Configure
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Configure
impl StructuralPartialEq for Configure
Auto Trait Implementations§
impl Freeze for Configure
impl RefUnwindSafe for Configure
impl Send for Configure
impl Sync for Configure
impl Unpin for Configure
impl UnsafeUnpin for Configure
impl UnwindSafe for Configure
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