pub enum CredentialType {
Impersonated,
Downscoped,
Hmac,
}Expand description
Which mechanism a role mints. The three differ in what they can be narrowed to and — more importantly — whether they can be revoked.
Variants§
Impersonated
A plain impersonated token. Inherits every permission of the target
service account, so prefer downscoped.
Downscoped
Impersonation followed by a Credential Access Boundary exchange, narrowing to one bucket and optionally one prefix.
Hmac
An S3-interoperability HMAC key. The only revocable credential here.
Trait Implementations§
Source§impl Clone for CredentialType
impl Clone for CredentialType
impl Copy for CredentialType
Source§impl Debug for CredentialType
impl Debug for CredentialType
Source§impl Default for CredentialType
impl Default for CredentialType
Source§impl<'de> Deserialize<'de> for CredentialType
impl<'de> Deserialize<'de> for CredentialType
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
impl Eq for CredentialType
Source§impl PartialEq for CredentialType
impl PartialEq for CredentialType
Source§impl Serialize for CredentialType
impl Serialize for CredentialType
impl StructuralPartialEq for CredentialType
Auto Trait Implementations§
impl Freeze for CredentialType
impl RefUnwindSafe for CredentialType
impl Send for CredentialType
impl Sync for CredentialType
impl Unpin for CredentialType
impl UnsafeUnpin for CredentialType
impl UnwindSafe for CredentialType
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