pub enum Answer {
Value {
value: Option<String>,
},
Stored,
Keys {
keys: Vec<String>,
},
Refused {
detail: String,
},
}Expand description
The daemon’s answer to an Ask.
Variants§
Value
What was stored, or nothing.
Stored
The write or the clear succeeded.
Keys
Every key there is, for Ask::StoreKeys.
Empty is the answer for a store that has never been written, a store whose key material has been rotated away, and a platform with no implementation. All three mean there is nothing here, and an addon that treated them differently would be acting on a distinction it cannot verify (ADR-0027).
Refused
It did not.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Answer
impl<'de> Deserialize<'de> for Answer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Answer
impl StructuralPartialEq for Answer
Auto Trait Implementations§
impl Freeze for Answer
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnsafeUnpin for Answer
impl UnwindSafe for Answer
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