pub enum CloudCredentials {
Anonymous,
AccessKey {
access_key_id: String,
secret_access_key: String,
session_token: Option<String>,
},
ServiceAccountFile {
path: String,
},
AzureSharedKey {
account_name: String,
account_key: String,
},
SasToken {
token: String,
},
Bearer {
token: String,
},
}Expand description
Authentication credentials for cloud object storage.
Variants§
Anonymous
No authentication (public buckets).
AccessKey
AWS / GCS access-key credentials.
Fields
ServiceAccountFile
GCS service-account JSON file path.
Azure Shared Key authentication.
SasToken
Azure SAS token.
Bearer
Generic OAuth2 bearer token.
Trait Implementations§
Source§impl Clone for CloudCredentials
impl Clone for CloudCredentials
Source§fn clone(&self) -> CloudCredentials
fn clone(&self) -> CloudCredentials
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 CloudCredentials
impl Debug for CloudCredentials
impl Eq for CloudCredentials
Source§impl PartialEq for CloudCredentials
impl PartialEq for CloudCredentials
impl StructuralPartialEq for CloudCredentials
Auto Trait Implementations§
impl Freeze for CloudCredentials
impl RefUnwindSafe for CloudCredentials
impl Send for CloudCredentials
impl Sync for CloudCredentials
impl Unpin for CloudCredentials
impl UnsafeUnpin for CloudCredentials
impl UnwindSafe for CloudCredentials
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.