pub struct Config(pub Vec<(String, String)>);Expand description
The bot’s configuration: the keys its manifest declares in [config], each with the
value the owner set or else its default. Keys with neither are absent. Given to
Bot::on_start and Bot::commands at start and to Bot::on_config on a change.
Tuple Fields§
§0: Vec<(String, String)>Implementations§
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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