pub struct AccessSubject(/* private fields */);Implementations§
Source§impl AccessSubject
impl AccessSubject
Sourcepub fn new(input: impl AsRef<str>) -> Result<AccessSubject, AuthzNameError>
pub fn new(input: impl AsRef<str>) -> Result<AccessSubject, AuthzNameError>
Creates a non-empty ASCII-safe authorization name.
Trait Implementations§
Source§impl Clone for AccessSubject
impl Clone for AccessSubject
Source§fn clone(&self) -> AccessSubject
fn clone(&self) -> AccessSubject
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 AccessSubject
impl Debug for AccessSubject
Source§impl Display for AccessSubject
impl Display for AccessSubject
Source§impl FromStr for AccessSubject
impl FromStr for AccessSubject
Source§type Err = AuthzNameError
type Err = AuthzNameError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<AccessSubject, <AccessSubject as FromStr>::Err>
fn from_str( input: &str, ) -> Result<AccessSubject, <AccessSubject as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for AccessSubject
impl Hash for AccessSubject
Source§impl Ord for AccessSubject
impl Ord for AccessSubject
Source§fn cmp(&self, other: &AccessSubject) -> Ordering
fn cmp(&self, other: &AccessSubject) -> 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 AccessSubject
impl PartialEq for AccessSubject
Source§fn eq(&self, other: &AccessSubject) -> bool
fn eq(&self, other: &AccessSubject) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AccessSubject
impl PartialOrd for AccessSubject
Source§impl TryFrom<&str> for AccessSubject
impl TryFrom<&str> for AccessSubject
Source§type Error = AuthzNameError
type Error = AuthzNameError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<AccessSubject, <AccessSubject as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<AccessSubject, <AccessSubject as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for AccessSubject
impl StructuralPartialEq for AccessSubject
Auto Trait Implementations§
impl Freeze for AccessSubject
impl RefUnwindSafe for AccessSubject
impl Send for AccessSubject
impl Sync for AccessSubject
impl Unpin for AccessSubject
impl UnsafeUnpin for AccessSubject
impl UnwindSafe for AccessSubject
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