pub struct ClientSecretRef(/* private fields */);
Expand description
A Client Secret
Implementations§
Source§impl ClientSecretRef
impl ClientSecretRef
Sourcepub const fn from_str(raw: &str) -> &Self
pub const fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed ClientSecretRef
Sourcepub const fn from_static(raw: &'static str) -> &'static Self
pub const fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static string slice as a strongly-typed ClientSecretRef
Sourcepub fn into_owned(self: Box<ClientSecretRef>) -> ClientSecret
pub fn into_owned(self: Box<ClientSecretRef>) -> ClientSecret
Converts a Box<ClientSecretRef>
into a ClientSecret
without copying or allocating
Source§impl ClientSecretRef
impl 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§
Source§impl AsRef<ClientSecretRef> for ClientSecret
impl AsRef<ClientSecretRef> for ClientSecret
Source§fn as_ref(&self) -> &ClientSecretRef
fn as_ref(&self) -> &ClientSecretRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for ClientSecretRef
impl AsRef<str> for ClientSecretRef
Source§impl Borrow<ClientSecretRef> for ClientSecret
impl Borrow<ClientSecretRef> for ClientSecret
Source§fn borrow(&self) -> &ClientSecretRef
fn borrow(&self) -> &ClientSecretRef
Immutably borrows from an owned value. Read more
Source§impl Borrow<str> for ClientSecretRef
impl Borrow<str> for ClientSecretRef
Source§impl Debug for ClientSecretRef
impl Debug for ClientSecretRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a ClientSecretRef
impl<'de: 'a, 'a> Deserialize<'de> for &'a ClientSecretRef
Source§fn 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
Source§impl<'de> Deserialize<'de> for Box<ClientSecretRef>
impl<'de> Deserialize<'de> for Box<ClientSecretRef>
Source§fn 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
Source§impl Display for ClientSecretRef
impl Display for ClientSecretRef
Source§impl From<&ClientSecretRef> for Arc<ClientSecretRef>
impl From<&ClientSecretRef> for Arc<ClientSecretRef>
Source§fn from(r: &ClientSecretRef) -> Self
fn from(r: &ClientSecretRef) -> Self
Converts to this type from the input type.
Source§impl From<&ClientSecretRef> for ClientSecret
impl From<&ClientSecretRef> for ClientSecret
Source§fn from(s: &ClientSecretRef) -> Self
fn from(s: &ClientSecretRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a ClientSecretRef> for Cow<'a, ClientSecretRef>
impl<'a> From<&'a ClientSecretRef> for Cow<'a, ClientSecretRef>
Source§fn from(r: &'a ClientSecretRef) -> Self
fn from(r: &'a ClientSecretRef) -> Self
Converts to this type from the input type.
Source§impl From<&ClientSecretRef> for Rc<ClientSecretRef>
impl From<&ClientSecretRef> for Rc<ClientSecretRef>
Source§fn from(r: &ClientSecretRef) -> Self
fn from(r: &ClientSecretRef) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, ClientSecretRef>> for &'a ClientSecretRef
impl<'a, 'b: 'a> From<&'a Cow<'b, ClientSecretRef>> for &'a ClientSecretRef
Source§fn from(r: &'a Cow<'b, ClientSecretRef>) -> &'a ClientSecretRef
fn from(r: &'a Cow<'b, ClientSecretRef>) -> &'a ClientSecretRef
Converts to this type from the input type.
Source§impl<'a> From<&'a str> for &'a ClientSecretRef
impl<'a> From<&'a str> for &'a ClientSecretRef
Source§fn from(s: &'a str) -> &'a ClientSecretRef
fn from(s: &'a str) -> &'a ClientSecretRef
Converts to this type from the input type.
Source§impl From<ClientSecret> for Box<ClientSecretRef>
impl From<ClientSecret> for Box<ClientSecretRef>
Source§fn from(r: ClientSecret) -> Self
fn from(r: ClientSecret) -> Self
Converts to this type from the input type.
Source§impl Hash for ClientSecretRef
impl Hash for ClientSecretRef
Source§impl Ord for ClientSecretRef
impl Ord for ClientSecretRef
Source§impl PartialEq<&ClientSecretRef> for ClientSecret
impl PartialEq<&ClientSecretRef> for ClientSecret
Source§impl PartialEq<ClientSecret> for &ClientSecretRef
impl PartialEq<ClientSecret> for &ClientSecretRef
Source§impl PartialEq<ClientSecret> for ClientSecretRef
impl PartialEq<ClientSecret> for ClientSecretRef
Source§impl PartialEq<ClientSecretRef> for ClientSecret
impl PartialEq<ClientSecretRef> for ClientSecret
Source§impl PartialEq for ClientSecretRef
impl PartialEq for ClientSecretRef
Source§impl PartialOrd for ClientSecretRef
impl PartialOrd for ClientSecretRef
Source§impl Serialize for ClientSecretRef
impl Serialize for ClientSecretRef
Source§impl ToOwned for ClientSecretRef
impl ToOwned for ClientSecretRef
Source§type Owned = ClientSecret
type Owned = ClientSecret
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more