pub struct EnvConfig {
pub discord_api_token: String,
pub config_file_path: Option<String>,
}Expand description
Environment variable configuration.
Fields§
§discord_api_token: StringDiscord API token for bot authentication.
config_file_path: Option<String>Optional path to the configuration file.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EnvConfig
impl<'de> Deserialize<'de> for EnvConfig
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 EnvConfig
impl RefUnwindSafe for EnvConfig
impl Send for EnvConfig
impl Sync for EnvConfig
impl Unpin for EnvConfig
impl UnwindSafe for EnvConfig
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