pub enum ServiceAccountError {
Io {
file: PathBuf,
error: Error,
},
Parse(Error),
InvalidKey(Error),
}Expand description
An error occurring when loading the service account file.
Variants§
Io
The service account file could not be read.
Fields
Parse(Error)
The service account JSON could not be parsed into the expected format.
InvalidKey(Error)
The private key was invalid.
Trait Implementations§
Source§impl Debug for ServiceAccountError
impl Debug for ServiceAccountError
Source§impl Display for ServiceAccountError
impl Display for ServiceAccountError
Source§impl Error for ServiceAccountError
impl Error for ServiceAccountError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for ServiceAccountError
impl From<Error> for ServiceAccountError
Auto Trait Implementations§
impl Freeze for ServiceAccountError
impl !RefUnwindSafe for ServiceAccountError
impl Send for ServiceAccountError
impl Sync for ServiceAccountError
impl Unpin for ServiceAccountError
impl UnsafeUnpin for ServiceAccountError
impl !UnwindSafe for ServiceAccountError
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