pub enum CredentialSourceError {
CredentialSourceTextInvalid(FromUtf8Error),
JsonInvalid(Error),
MissingJsonField(String),
InvalidJsonField(String),
}
Expand description
Errors that can happen when parsing a Credential source
Variants§
CredentialSourceTextInvalid(FromUtf8Error)
Parsing credential text source failed
JsonInvalid(Error)
Failed to parse JSON
MissingJsonField(String)
JSON is missing this field
InvalidJsonField(String)
This field of JSON is invalid
Trait Implementations§
Source§impl Debug for CredentialSourceError
impl Debug for CredentialSourceError
Source§impl Display for CredentialSourceError
impl Display for CredentialSourceError
Source§impl Error for CredentialSourceError
impl Error for CredentialSourceError
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()
Auto Trait Implementations§
impl Freeze for CredentialSourceError
impl !RefUnwindSafe for CredentialSourceError
impl Send for CredentialSourceError
impl Sync for CredentialSourceError
impl Unpin for CredentialSourceError
impl !UnwindSafe for CredentialSourceError
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