pub struct DiscordSecrets {
pub bot_token: String,
}Expand description
Discord only uses one secret — the long-lived bot token — so
Secrets wraps it in a named struct rather than String for
parity with services that need richer shapes.
Fields§
§bot_token: StringAuto Trait Implementations§
impl Freeze for DiscordSecrets
impl RefUnwindSafe for DiscordSecrets
impl Send for DiscordSecrets
impl Sync for DiscordSecrets
impl Unpin for DiscordSecrets
impl UnsafeUnpin for DiscordSecrets
impl UnwindSafe for DiscordSecrets
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