Struct serenity::client::TokenComponents [−][src]
pub struct TokenComponents { pub bot_user_id: UserId, pub creation_time: NaiveDateTime, }
Expand description
Part of the data contained within a Discord bot token. Returned by parse_token
.
Fields
bot_user_id: UserId
creation_time: NaiveDateTime
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TokenComponents
impl Send for TokenComponents
impl Sync for TokenComponents
impl Unpin for TokenComponents
impl UnwindSafe for TokenComponents
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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
type Output = T
type Output = T
Should always be Self