pub struct DiscordBotConfig {
pub bot_token: Option<String>,
pub bot_token_env: Option<String>,
pub channel_id: Option<String>,
pub channel_id_env: Option<String>,
pub allow_mentions: Option<bool>,
}Fields§
§bot_token: Option<String>§bot_token_env: Option<String>§channel_id: Option<String>§channel_id_env: Option<String>§allow_mentions: Option<bool>Trait Implementations§
Source§impl Clone for DiscordBotConfig
impl Clone for DiscordBotConfig
Source§fn clone(&self) -> DiscordBotConfig
fn clone(&self) -> DiscordBotConfig
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 DiscordBotConfig
impl Debug for DiscordBotConfig
Source§impl<'de> Deserialize<'de> for DiscordBotConfig
impl<'de> Deserialize<'de> for DiscordBotConfig
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
Auto Trait Implementations§
impl Freeze for DiscordBotConfig
impl RefUnwindSafe for DiscordBotConfig
impl Send for DiscordBotConfig
impl Sync for DiscordBotConfig
impl Unpin for DiscordBotConfig
impl UnsafeUnpin for DiscordBotConfig
impl UnwindSafe for DiscordBotConfig
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