pub enum SecretReferenceError {
ExpectedObject,
ExpectedOneDiscriminator,
UnsupportedDiscriminator,
ExpectedNonEmptyString {
field: &'static str,
},
ExpectedCommand,
ExpectedKeyring,
}Expand description
The structural reason a JSON value cannot represent a SecretReference.
Variants§
ExpectedObject
The reference is not an object.
ExpectedOneDiscriminator
The reference object did not have exactly one discriminator.
UnsupportedDiscriminator
The reference discriminator is unknown.
ExpectedNonEmptyString
A required string field was missing, incorrectly typed, or empty.
ExpectedCommand
The command was not a string array beginning with a non-empty executable.
ExpectedKeyring
The keyring value was not an object with exactly service and account.
Trait Implementations§
Source§impl Clone for SecretReferenceError
impl Clone for SecretReferenceError
Source§impl Debug for SecretReferenceError
impl Debug for SecretReferenceError
Source§impl Display for SecretReferenceError
impl Display for SecretReferenceError
impl Eq for SecretReferenceError
Source§impl Error for SecretReferenceError
impl Error for SecretReferenceError
1.30.0 · 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 PartialEq for SecretReferenceError
impl PartialEq for SecretReferenceError
impl StructuralPartialEq for SecretReferenceError
Auto Trait Implementations§
impl Freeze for SecretReferenceError
impl RefUnwindSafe for SecretReferenceError
impl Send for SecretReferenceError
impl Sync for SecretReferenceError
impl Unpin for SecretReferenceError
impl UnsafeUnpin for SecretReferenceError
impl UnwindSafe for SecretReferenceError
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