pub struct AuthSchemeName(/* private fields */);Implementations§
Source§impl AuthSchemeName
impl AuthSchemeName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
pub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
Creates validated text metadata.
§Errors
Returns ApiPrimitiveError when the value is empty or contains control characters.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the value and returns the stored text.
Trait Implementations§
Source§impl AsRef<str> for AuthSchemeName
impl AsRef<str> for AuthSchemeName
Source§impl Clone for AuthSchemeName
impl Clone for AuthSchemeName
Source§fn clone(&self) -> AuthSchemeName
fn clone(&self) -> AuthSchemeName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthSchemeName
impl Debug for AuthSchemeName
Source§impl Display for AuthSchemeName
impl Display for AuthSchemeName
Source§impl FromStr for AuthSchemeName
impl FromStr for AuthSchemeName
Source§impl Hash for AuthSchemeName
impl Hash for AuthSchemeName
Source§impl Ord for AuthSchemeName
impl Ord for AuthSchemeName
Source§fn cmp(&self, other: &AuthSchemeName) -> Ordering
fn cmp(&self, other: &AuthSchemeName) -> Ordering
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
Source§impl PartialEq for AuthSchemeName
impl PartialEq for AuthSchemeName
Source§fn eq(&self, other: &AuthSchemeName) -> bool
fn eq(&self, other: &AuthSchemeName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AuthSchemeName
impl PartialOrd for AuthSchemeName
Source§impl TryFrom<&str> for AuthSchemeName
impl TryFrom<&str> for AuthSchemeName
impl Eq for AuthSchemeName
impl StructuralPartialEq for AuthSchemeName
Auto Trait Implementations§
impl Freeze for AuthSchemeName
impl RefUnwindSafe for AuthSchemeName
impl Send for AuthSchemeName
impl Sync for AuthSchemeName
impl Unpin for AuthSchemeName
impl UnsafeUnpin for AuthSchemeName
impl UnwindSafe for AuthSchemeName
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