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
Sourcepub fn service_account(&self) -> Result<ServiceAccountCredentials>
pub fn service_account(&self) -> Result<ServiceAccountCredentials>
Parse the resolved JSON into service-account fields.
Trait Implementations§
Source§impl Clone for Credentials
impl Clone for Credentials
Auto 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