Struct scratchstack_aws_principal::CanonicalUser
source · [−]pub struct CanonicalUser { /* private fields */ }
Expand description
Details about an S3 canonical user.
Implementations
sourceimpl CanonicalUser
impl CanonicalUser
sourcepub fn new(canonical_user_id: &str) -> Result<Self, PrincipalError>
pub fn new(canonical_user_id: &str) -> Result<Self, PrincipalError>
Create a CanonicalUser object.
Arguments
canonical_user_id
: The canonical user id. This must be a 64 character hex string in lower-case form.
If all of the requirements are met, a CanonicalUser object is returned. Otherwise, a PrincipalError error is returned.
pub fn canonical_user_id(&self) -> &str
Trait Implementations
sourceimpl Clone for CanonicalUser
impl Clone for CanonicalUser
sourcefn clone(&self) -> CanonicalUser
fn clone(&self) -> CanonicalUser
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CanonicalUser
impl Debug for CanonicalUser
sourceimpl Display for CanonicalUser
impl Display for CanonicalUser
sourceimpl From<CanonicalUser> for PrincipalIdentity
impl From<CanonicalUser> for PrincipalIdentity
sourcefn from(canonical_user: CanonicalUser) -> Self
fn from(canonical_user: CanonicalUser) -> Self
Wrap a CanonicalUser in a Principal.
sourceimpl Hash for CanonicalUser
impl Hash for CanonicalUser
sourceimpl Ord for CanonicalUser
impl Ord for CanonicalUser
sourcefn cmp(&self, other: &CanonicalUser) -> Ordering
fn cmp(&self, other: &CanonicalUser) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<CanonicalUser> for CanonicalUser
impl PartialEq<CanonicalUser> for CanonicalUser
sourcefn eq(&self, other: &CanonicalUser) -> bool
fn eq(&self, other: &CanonicalUser) -> bool
sourceimpl PartialOrd<CanonicalUser> for CanonicalUser
impl PartialOrd<CanonicalUser> for CanonicalUser
sourcefn partial_cmp(&self, other: &CanonicalUser) -> Option<Ordering>
fn partial_cmp(&self, other: &CanonicalUser) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for CanonicalUser
impl StructuralEq for CanonicalUser
impl StructuralPartialEq for CanonicalUser
Auto Trait Implementations
impl RefUnwindSafe for CanonicalUser
impl Send for CanonicalUser
impl Sync for CanonicalUser
impl Unpin for CanonicalUser
impl UnwindSafe for CanonicalUser
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more