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