pub struct Resolution {
pub status: SecretStatus,
pub message: Option<String>,
}Expand description
A status with English detail. The detail never holds a value: provider output is reduced to a fixed message before it gets here.
Fields§
§status: SecretStatus§message: Option<String>Implementations§
Source§impl Resolution
impl Resolution
pub fn new(status: SecretStatus, message: impl Into<String>) -> Self
pub fn resolved() -> Self
pub fn missing(message: impl Into<String>) -> Self
pub fn error(message: impl Into<String>) -> Self
Sourcepub fn into_error(self, context: &str) -> CoreError
pub fn into_error(self, context: &str) -> CoreError
The error a command reports when it needed the value: context
names what was being resolved.
Trait Implementations§
Source§impl Clone for Resolution
impl Clone for Resolution
Source§impl Debug for Resolution
impl Debug for Resolution
Source§impl Display for Resolution
impl Display for Resolution
impl Eq for Resolution
Source§impl PartialEq for Resolution
impl PartialEq for Resolution
impl StructuralPartialEq for Resolution
Auto Trait Implementations§
impl Forget for Resolution
impl Freeze for Resolution
impl Move for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolutionwhere
RawVecInner: Send,
impl Sync for Resolutionwhere
RawVecInner: Sync,
impl Unpin for Resolution
impl UnsafeUnpin for Resolution
impl UnwindSafe for Resolutionwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.