Struct twitch_oauth2::types::RefreshToken
source · [−]#[repr(transparent)]pub struct RefreshToken(_);
Expand description
A Refresh Token
Implementations
sourceimpl RefreshToken
impl RefreshToken
sourcepub fn into_boxed_ref(self) -> Box<RefreshTokenRef>
pub fn into_boxed_ref(self) -> Box<RefreshTokenRef>
Converts this RefreshToken
into a Box
<
RefreshTokenRef
>
This will drop any excess capacity.
sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Unwraps the underlying String
value
Methods from Deref<Target = RefreshTokenRef>
sourcepub fn secret(&self) -> &str
pub fn secret(&self) -> &str
Get the secret from this string.
This function is the same as RefreshToken::as_str
, but has another name for searchability, prefer to use this function.
Trait Implementations
sourceimpl AsRef<RefreshTokenRef> for RefreshToken
impl AsRef<RefreshTokenRef> for RefreshToken
sourcefn as_ref(&self) -> &RefreshTokenRef
fn as_ref(&self) -> &RefreshTokenRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<str> for RefreshToken
impl AsRef<str> for RefreshToken
sourceimpl Borrow<RefreshTokenRef> for RefreshToken
impl Borrow<RefreshTokenRef> for RefreshToken
sourcefn borrow(&self) -> &RefreshTokenRef
fn borrow(&self) -> &RefreshTokenRef
Immutably borrows from an owned value. Read more
sourceimpl Borrow<str> for RefreshToken
impl Borrow<str> for RefreshToken
sourceimpl Clone for RefreshToken
impl Clone for RefreshToken
sourcefn clone(&self) -> RefreshToken
fn clone(&self) -> RefreshToken
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for RefreshToken
impl<'a> Debug for RefreshToken
sourceimpl Deref for RefreshToken
impl Deref for RefreshToken
type Target = RefreshTokenRef
type Target = RefreshTokenRef
The resulting type after dereferencing.
sourceimpl<'de> Deserialize<'de> for RefreshToken
impl<'de> Deserialize<'de> for RefreshToken
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'a> Display for RefreshToken
impl<'a> Display for RefreshToken
sourceimpl From<&'_ RefreshTokenRef> for RefreshToken
impl From<&'_ RefreshTokenRef> for RefreshToken
sourcefn from(s: &RefreshTokenRef) -> Self
fn from(s: &RefreshTokenRef) -> Self
Converts to this type from the input type.
sourceimpl From<&'_ str> for RefreshToken
impl From<&'_ str> for RefreshToken
sourceimpl From<Box<RefreshTokenRef, Global>> for RefreshToken
impl From<Box<RefreshTokenRef, Global>> for RefreshToken
sourcefn from(r: Box<RefreshTokenRef>) -> Self
fn from(r: Box<RefreshTokenRef>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<Cow<'a, RefreshTokenRef>> for RefreshToken
impl<'a> From<Cow<'a, RefreshTokenRef>> for RefreshToken
sourcefn from(r: Cow<'a, RefreshTokenRef>) -> Self
fn from(r: Cow<'a, RefreshTokenRef>) -> Self
Converts to this type from the input type.
sourceimpl From<RefreshToken> for Box<RefreshTokenRef>
impl From<RefreshToken> for Box<RefreshTokenRef>
sourcefn from(r: RefreshToken) -> Self
fn from(r: RefreshToken) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<RefreshToken> for Cow<'a, RefreshTokenRef>
impl<'a> From<RefreshToken> for Cow<'a, RefreshTokenRef>
sourcefn from(owned: RefreshToken) -> Self
fn from(owned: RefreshToken) -> Self
Converts to this type from the input type.
sourceimpl From<String> for RefreshToken
impl From<String> for RefreshToken
sourceimpl FromStr for RefreshToken
impl FromStr for RefreshToken
sourceimpl Hash for RefreshToken
impl Hash for RefreshToken
sourceimpl PartialEq<&'_ RefreshTokenRef> for RefreshToken
impl PartialEq<&'_ RefreshTokenRef> for RefreshToken
sourceimpl PartialEq<Box<RefreshTokenRef, Global>> for RefreshToken
impl PartialEq<Box<RefreshTokenRef, Global>> for RefreshToken
sourceimpl PartialEq<RefreshToken> for RefreshToken
impl PartialEq<RefreshToken> for RefreshToken
sourceimpl PartialEq<RefreshToken> for RefreshTokenRef
impl PartialEq<RefreshToken> for RefreshTokenRef
sourceimpl PartialEq<RefreshToken> for &RefreshTokenRef
impl PartialEq<RefreshToken> for &RefreshTokenRef
sourceimpl PartialEq<RefreshToken> for Box<RefreshTokenRef>
impl PartialEq<RefreshToken> for Box<RefreshTokenRef>
sourceimpl PartialEq<RefreshTokenRef> for RefreshToken
impl PartialEq<RefreshTokenRef> for RefreshToken
sourceimpl Serialize for RefreshToken
impl Serialize for RefreshToken
impl Eq for RefreshToken
Auto Trait Implementations
impl RefUnwindSafe for RefreshToken
impl Send for RefreshToken
impl Sync for RefreshToken
impl Unpin for RefreshToken
impl UnwindSafe for RefreshToken
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more