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 · 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
Source§impl PartialEq for CloudCredentials
impl PartialEq for CloudCredentials
impl Eq 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§
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