#[non_exhaustive]pub struct Credentials {
pub bot_token: Secret,
pub rotation: TokenRotation,
pub oauth_client_secret: Secret,
pub webhook_secret: Secret,
}Expand description
Everything secret the adapter holds. Every field zeroizes on drop and
prints as <redacted>.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bot_token: SecretThe bot’s access token.
rotation: TokenRotationHow it is rotated.
oauth_client_secret: SecretThe OAuth application’s client secret.
webhook_secret: SecretThe org webhook’s HMAC secret.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Credentials
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnsafeUnpin for Credentials
impl UnwindSafe for Credentials
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