pub struct OAuthScopeLabel(/* private fields */);Implementations§
Source§impl OAuthScopeLabel
impl OAuthScopeLabel
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 OAuthScopeLabel
impl AsRef<str> for OAuthScopeLabel
Source§impl Clone for OAuthScopeLabel
impl Clone for OAuthScopeLabel
Source§fn clone(&self) -> OAuthScopeLabel
fn clone(&self) -> OAuthScopeLabel
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 OAuthScopeLabel
impl Debug for OAuthScopeLabel
Source§impl Display for OAuthScopeLabel
impl Display for OAuthScopeLabel
Source§impl FromStr for OAuthScopeLabel
impl FromStr for OAuthScopeLabel
Source§impl Hash for OAuthScopeLabel
impl Hash for OAuthScopeLabel
Source§impl Ord for OAuthScopeLabel
impl Ord for OAuthScopeLabel
Source§fn cmp(&self, other: &OAuthScopeLabel) -> Ordering
fn cmp(&self, other: &OAuthScopeLabel) -> 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 OAuthScopeLabel
impl PartialEq for OAuthScopeLabel
Source§fn eq(&self, other: &OAuthScopeLabel) -> bool
fn eq(&self, other: &OAuthScopeLabel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OAuthScopeLabel
impl PartialOrd for OAuthScopeLabel
Source§impl TryFrom<&str> for OAuthScopeLabel
impl TryFrom<&str> for OAuthScopeLabel
impl Eq for OAuthScopeLabel
impl StructuralPartialEq for OAuthScopeLabel
Auto Trait Implementations§
impl Freeze for OAuthScopeLabel
impl RefUnwindSafe for OAuthScopeLabel
impl Send for OAuthScopeLabel
impl Sync for OAuthScopeLabel
impl Unpin for OAuthScopeLabel
impl UnsafeUnpin for OAuthScopeLabel
impl UnwindSafe for OAuthScopeLabel
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