pub struct BotContext {
pub app_id: AppId,
pub token: String,
pub webhook_secret: Option<String>,
pub description: Option<String>,
}Fields§
§app_id: AppId§token: String§webhook_secret: Option<String>§description: Option<String>Trait Implementations§
Source§impl Clone for BotContext
impl Clone for BotContext
Source§fn clone(&self) -> BotContext
fn clone(&self) -> BotContext
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 BotContext
impl Debug for BotContext
Source§impl<'de> Deserialize<'de> for BotContext
impl<'de> Deserialize<'de> for BotContext
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 BotContext
impl RefUnwindSafe for BotContext
impl Send for BotContext
impl Sync for BotContext
impl Unpin for BotContext
impl UnwindSafe for BotContext
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