pub enum Credentials {
File(PathBuf),
Base64(String),
ServiceAccount(Box<ServiceAccountCredentials>),
}Expand description
Google service-account credentials, in one of three formats.
Variants§
File(PathBuf)
Path to the service-account JSON key file.
Base64(String)
Base64-encoded service-account JSON (e.g. a CI secret).
ServiceAccount(Box<ServiceAccountCredentials>)
Inline service-account fields.
Implementations§
Source§impl Credentials
impl Credentials
Trait Implementations§
Source§impl Clone for Credentials
impl Clone for Credentials
Source§fn clone(&self) -> Credentials
fn clone(&self) -> Credentials
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 Forget for Credentials
impl Freeze for Credentials
impl Move for Credentials
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnsafeUnpin for Credentials
impl UnwindSafe for Credentials
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