Struct telescope::env::DiscordConfig [−][src]
pub struct DiscordConfig {
pub client_id: ClientId,
pub client_secret: ClientSecret,
pub bot_token: String,
pub rcos_guild_id: String,
}
Fields
client_id: ClientId
The Discord application client id.
client_secret: ClientSecret
The Discord OAuth2 application client secret.
bot_token: String
The bot token granted by discord used to authenticate with the discord bot API.
rcos_guild_id: String
The RCOS Discord Guild ID.
Implementations
Get the RCOS Discord Guild ID as a u64
.
Trait Implementations
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 RefUnwindSafe for DiscordConfig
impl Send for DiscordConfig
impl Sync for DiscordConfig
impl Unpin for DiscordConfig
impl UnwindSafe for DiscordConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more