pub struct Config {
pub api_key: String,
pub verified_bot_key: Option<String>,
pub verified_bot_key_api_key: Option<String>,
pub api_url: String,
}Fields§
§api_key: String§verified_bot_key: Option<String>§verified_bot_key_api_key: Option<String>§api_url: StringImplementations§
Source§impl Config
impl Config
pub fn new() -> Self
pub fn set_api_key(self, api_key: String) -> Self
pub fn set_verified_bot_key(self, verified_bot_key: String) -> Self
pub fn set_verified_bot_key_api_key( self, verified_bot_key_api_key: String, ) -> Self
pub fn set_api_url(self, api_url: String) -> Self
pub fn to_kit(self) -> Kit
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin 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