pub struct OAuthClientId(/* private fields */);Expand description
An OAuth client’s public identifier: the client_id issued at dynamic
client registration (RFC 7591) and carried on every authorization code,
access token and refresh token the client obtains.
A string, not a UUID: registered clients get a UUID-shaped string, and
rows from the removed operator-token endpoint carry the non-UUID
"m2m". Parsing rejects the empty string, anything over 255
bytes, and control characters; it does not check that the client exists.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for OAuthClientId
impl AsRef<str> for OAuthClientId
Source§impl Clone for OAuthClientId
impl Clone for OAuthClientId
Source§impl Debug for OAuthClientId
impl Debug for OAuthClientId
Source§impl<'de> Deserialize<'de> for OAuthClientId
impl<'de> Deserialize<'de> for OAuthClientId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OAuthClientId
impl Display for OAuthClientId
impl Eq for OAuthClientId
Source§impl From<OAuthClientId> for String
impl From<OAuthClientId> for String
Source§fn from(id: OAuthClientId) -> Self
fn from(id: OAuthClientId) -> Self
Converts to this type from the input type.
Source§impl FromStr for OAuthClientId
impl FromStr for OAuthClientId
Source§impl Hash for OAuthClientId
impl Hash for OAuthClientId
Source§impl Ord for OAuthClientId
impl Ord for OAuthClientId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OAuthClientId
impl PartialEq for OAuthClientId
Source§impl PartialOrd for OAuthClientId
impl PartialOrd for OAuthClientId
Source§impl Serialize for OAuthClientId
impl Serialize for OAuthClientId
impl StructuralPartialEq for OAuthClientId
Auto Trait Implementations§
impl Freeze for OAuthClientId
impl RefUnwindSafe for OAuthClientId
impl Send for OAuthClientId
impl Sync for OAuthClientId
impl Unpin for OAuthClientId
impl UnsafeUnpin for OAuthClientId
impl UnwindSafe for OAuthClientId
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