pub enum OnePasswordError {
CliNotFound,
NotAuthenticated,
InvalidReference {
reference: String,
},
SecretNotFound {
reference: String,
},
CommandFailed {
message: String,
},
PermissionDenied {
reference: String,
},
JsonError {
source: Error,
},
IoError {
source: Error,
},
}Expand description
Errors that can occur during 1Password operations
Variants§
CliNotFound
NotAuthenticated
InvalidReference
SecretNotFound
CommandFailed
PermissionDenied
JsonError
IoError
Trait Implementations§
Source§impl Debug for OnePasswordError
impl Debug for OnePasswordError
Source§impl Display for OnePasswordError
impl Display for OnePasswordError
Source§impl Error for OnePasswordError
impl Error for OnePasswordError
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 OnePasswordError
impl From<Error> for OnePasswordError
Auto Trait Implementations§
impl Freeze for OnePasswordError
impl !RefUnwindSafe for OnePasswordError
impl Send for OnePasswordError
impl Sync for OnePasswordError
impl Unpin for OnePasswordError
impl !UnwindSafe for OnePasswordError
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