Struct twitch_oauth2::types::ClientSecret
source · [−]#[repr(transparent)]pub struct ClientSecret(_);
Expand description
A Client Secret
Implementations
sourceimpl ClientSecret
impl ClientSecret
sourcepub fn into_boxed_ref(self) -> Box<ClientSecretRef>
pub fn into_boxed_ref(self) -> Box<ClientSecretRef>
Converts this ClientSecret
into a Box
<
ClientSecretRef
>
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 = ClientSecretRef>
sourcepub fn secret(&self) -> &str
pub fn secret(&self) -> &str
Get the secret from this string.
This function is the same as ClientSecret::as_str
, but has another name for searchability, prefer to use this function.
Trait Implementations
sourceimpl AsRef<ClientSecretRef> for ClientSecret
impl AsRef<ClientSecretRef> for ClientSecret
sourcefn as_ref(&self) -> &ClientSecretRef
fn as_ref(&self) -> &ClientSecretRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<str> for ClientSecret
impl AsRef<str> for ClientSecret
sourceimpl Borrow<ClientSecretRef> for ClientSecret
impl Borrow<ClientSecretRef> for ClientSecret
sourcefn borrow(&self) -> &ClientSecretRef
fn borrow(&self) -> &ClientSecretRef
Immutably borrows from an owned value. Read more
sourceimpl Borrow<str> for ClientSecret
impl Borrow<str> for ClientSecret
sourceimpl Clone for ClientSecret
impl Clone for ClientSecret
sourcefn clone(&self) -> ClientSecret
fn clone(&self) -> ClientSecret
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 ClientSecret
impl<'a> Debug for ClientSecret
sourceimpl Deref for ClientSecret
impl Deref for ClientSecret
type Target = ClientSecretRef
type Target = ClientSecretRef
The resulting type after dereferencing.
sourceimpl<'de> Deserialize<'de> for ClientSecret
impl<'de> Deserialize<'de> for ClientSecret
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 ClientSecret
impl<'a> Display for ClientSecret
sourceimpl From<&'_ ClientSecretRef> for ClientSecret
impl From<&'_ ClientSecretRef> for ClientSecret
sourcefn from(s: &ClientSecretRef) -> Self
fn from(s: &ClientSecretRef) -> Self
Converts to this type from the input type.
sourceimpl From<&'_ str> for ClientSecret
impl From<&'_ str> for ClientSecret
sourceimpl From<Box<ClientSecretRef, Global>> for ClientSecret
impl From<Box<ClientSecretRef, Global>> for ClientSecret
sourcefn from(r: Box<ClientSecretRef>) -> Self
fn from(r: Box<ClientSecretRef>) -> Self
Converts to this type from the input type.
sourceimpl From<ClientSecret> for Box<ClientSecretRef>
impl From<ClientSecret> for Box<ClientSecretRef>
sourcefn from(r: ClientSecret) -> Self
fn from(r: ClientSecret) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<ClientSecret> for Cow<'a, ClientSecretRef>
impl<'a> From<ClientSecret> for Cow<'a, ClientSecretRef>
sourcefn from(owned: ClientSecret) -> Self
fn from(owned: ClientSecret) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<Cow<'a, ClientSecretRef>> for ClientSecret
impl<'a> From<Cow<'a, ClientSecretRef>> for ClientSecret
sourcefn from(r: Cow<'a, ClientSecretRef>) -> Self
fn from(r: Cow<'a, ClientSecretRef>) -> Self
Converts to this type from the input type.
sourceimpl From<String> for ClientSecret
impl From<String> for ClientSecret
sourceimpl FromStr for ClientSecret
impl FromStr for ClientSecret
sourceimpl Hash for ClientSecret
impl Hash for ClientSecret
sourceimpl PartialEq<&'_ ClientSecretRef> for ClientSecret
impl PartialEq<&'_ ClientSecretRef> for ClientSecret
sourceimpl PartialEq<Box<ClientSecretRef, Global>> for ClientSecret
impl PartialEq<Box<ClientSecretRef, Global>> for ClientSecret
sourceimpl PartialEq<ClientSecret> for ClientSecret
impl PartialEq<ClientSecret> for ClientSecret
sourceimpl PartialEq<ClientSecret> for ClientSecretRef
impl PartialEq<ClientSecret> for ClientSecretRef
sourceimpl PartialEq<ClientSecret> for &ClientSecretRef
impl PartialEq<ClientSecret> for &ClientSecretRef
sourceimpl PartialEq<ClientSecret> for Box<ClientSecretRef>
impl PartialEq<ClientSecret> for Box<ClientSecretRef>
sourceimpl PartialEq<ClientSecretRef> for ClientSecret
impl PartialEq<ClientSecretRef> for ClientSecret
sourceimpl Serialize for ClientSecret
impl Serialize for ClientSecret
impl Eq for ClientSecret
Auto Trait Implementations
impl RefUnwindSafe for ClientSecret
impl Send for ClientSecret
impl Sync for ClientSecret
impl Unpin for ClientSecret
impl UnwindSafe for ClientSecret
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