Enum credentials::Error [−][src]
pub enum Error { Credential { name: String, cause: Box<Error>, }, FileRead { path: PathBuf, cause: Box<Error>, }, InvalidUrl { url: String, }, Io(Error), Json(Error), MissingEntry { name: String, }, MissingKeyInPath { path: String, }, MissingKeyInSecret { secret: String, key: String, }, MissingVaultAddr, MissingVaultToken(Box<Error>), NoBackend, NoHomeDirectory, NonUnicodePath { path: PathBuf, }, Parse { input: String, }, Other(Error), Secretfile(Box<Error>), UndefinedEnvironmentVariable { name: String, cause: VarError, }, UnexpectedHttpStatus { status: StatusCode, body: String, }, UnparseableUrl(UrlError), Url { url: Url, cause: Box<Error>, }, // some variants omitted }
An error returned by credentials
.
Variants
Credential
Could not access a secure credential.
Fields of Credential
name: String | The name of the credential we couldn't access. |
cause: Box<Error> | The reason why we couldn't access it. |
FileRead
Could not read file.
Fields of FileRead
path: PathBuf | The file we couldn't access. |
cause: Box<Error> | The reason why we couldn't access it. |
InvalidUrl
We encountered an invalid URL.
Fields of InvalidUrl
url: String | The invalid URL. |
Io(Error)
An error occurred doing I/O.
Json(Error)
We failed to parse JSON data.
MissingEntry
Missing entry in Secretfile.
Fields of MissingEntry
name: String | The name of the entry. |
MissingKeyInPath
Path is missing a ':key' component.
Fields of MissingKeyInPath
path: String | The invalid path. |
MissingKeyInSecret
Secret does not have value for specified key.
Fields of MissingKeyInSecret
secret: String | The name of the secret. |
key: String | The key for which we have no value. |
MissingVaultAddr
VAULT_ADDR
not specified.
MissingVaultToken(Box<Error>)
Cannot get either VAULT_TOKEN
or ~/.vault_token
.
NoBackend
No credentials
backend available.
NoHomeDirectory
Can't find home directory.
NonUnicodePath
Path cannot be represented as Unicode.
Fields of NonUnicodePath
path: PathBuf | The path which cannot be represented as Unicode. |
Parse
Parsing error.
Fields of Parse
input: String | The input we couldn't parse. |
Other(Error)
An unspecified kind of error occurred.
Secretfile(Box<Error>)
Can't read Secretfile
.
UndefinedEnvironmentVariable
Undefined environment variable.
Fields of UndefinedEnvironmentVariable
name: String | The name of the environment variable. |
cause: VarError | The error we encountered. |
UnexpectedHttpStatus
Unexpected HTTP status.
Fields of UnexpectedHttpStatus
status: StatusCode | The status we received. |
body: String | The HTTP body we received. |
UnparseableUrl(UrlError)
We failed to parse a URL.
Url
Could not access URL.
Fields of Url
url: Url | The URL we couldn't access. |
cause: Box<Error> | The reason we couldn't access it. |
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<UrlError> for Error
[src]
impl From<UrlError> for Error