pub enum CosmosAuth {
Bearer(String),
MasterKey(String),
}Expand description
Authentication mode for Cosmos REST calls.
Variants§
Bearer(String)
AAD bearer token (acquired via AzCliAuth::for_cosmos()).
MasterKey(String)
Cosmos master key (base64-encoded). Use with care; secret material.
Trait Implementations§
Source§impl Clone for CosmosAuth
impl Clone for CosmosAuth
Source§fn clone(&self) -> CosmosAuth
fn clone(&self) -> CosmosAuth
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 moreAuto Trait Implementations§
impl Freeze for CosmosAuth
impl RefUnwindSafe for CosmosAuth
impl Send for CosmosAuth
impl Sync for CosmosAuth
impl Unpin for CosmosAuth
impl UnsafeUnpin for CosmosAuth
impl UnwindSafe for CosmosAuth
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