pub enum MemberAccess {
ProviderAccount(String),
S3AccessKey {
access_key_id: String,
},
}Expand description
An account to share with, or the id of a member’s S3 key.
Variants§
ProviderAccount(String)
The member’s provider account email.
S3AccessKey
A member’s S3 key, made in the provider’s console.
Implementations§
Source§impl MemberAccess
impl MemberAccess
Sourcepub fn same_credential(&self, other: &Self) -> bool
pub fn same_credential(&self, other: &Self) -> bool
Whether both name the same credential: one account, compared without case or surrounding space, or one S3 key id.
Sourcepub fn same_account(a: &str, b: &str) -> bool
pub fn same_account(a: &str, b: &str) -> bool
Whether two provider accounts are one: without case or surrounding space.
Sourcepub fn normalized_account(account: &str) -> String
pub fn normalized_account(account: &str) -> String
An account in the one spelling its equal spellings share: trimmed and lowercase.
Trait Implementations§
Source§impl Clone for MemberAccess
impl Clone for MemberAccess
Source§fn clone(&self) -> MemberAccess
fn clone(&self) -> MemberAccess
Returns a duplicate of the value. Read more
1.0.0 · 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 MemberAccess
impl Debug for MemberAccess
Source§impl<'de> Deserialize<'de> for MemberAccess
impl<'de> Deserialize<'de> for MemberAccess
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MemberAccess
impl PartialEq for MemberAccess
Source§impl Serialize for MemberAccess
impl Serialize for MemberAccess
impl Eq for MemberAccess
impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
impl Freeze for MemberAccess
impl RefUnwindSafe for MemberAccess
impl Send for MemberAccess
impl Sync for MemberAccess
impl Unpin for MemberAccess
impl UnsafeUnpin for MemberAccess
impl UnwindSafe for MemberAccess
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more