pub struct VaultAskAnswer {
pub decision: VaultAskDecision,
pub master_password: Option<String>,
pub two_factor: Option<String>,
pub released: Option<VaultReleased>,
}Expand description
The reader’s answer to a held vault call, including the unlock material when the card asked for it.
The master password rides only this answer. It never enters the
model’s arguments and never reaches the transcript: the dock’s masked
field sends it over the local answer channel, and the core hands it to
the unlock path and zeroizes it. The manual Debug redacts both it and
the 2FA code.
Fields§
§decision: VaultAskDecisionWhat the reader decided.
Flattened, because the decision IS the answer’s tag. The client
writes {"decision":"approve", ...}; without this the internally
tagged enum nests one level down and no answer decodes.
master_password: Option<String>The master password, when this card asked for it and the reader entered one. Absent on every card the session was already unlocked for, and ignored when the session unlocked first.
two_factor: Option<String>The 2FA code, when the account asks for one.
released: Option<VaultReleased>The material a platform authenticator released, when the card asked for the gesture instead of the password. The two are alternatives; a card carries one or the other, and a present release is the one tried.
Trait Implementations§
Source§impl Clone for VaultAskAnswer
impl Clone for VaultAskAnswer
Source§impl Debug for VaultAskAnswer
impl Debug for VaultAskAnswer
Source§impl<'de> Deserialize<'de> for VaultAskAnswer
impl<'de> Deserialize<'de> for VaultAskAnswer
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>,
Source§impl Drop for VaultAskAnswer
impl Drop for VaultAskAnswer
impl Eq for VaultAskAnswer
Source§impl PartialEq for VaultAskAnswer
impl PartialEq for VaultAskAnswer
Source§impl Serialize for VaultAskAnswer
impl Serialize for VaultAskAnswer
impl StructuralPartialEq for VaultAskAnswer
Auto Trait Implementations§
impl Freeze for VaultAskAnswer
impl RefUnwindSafe for VaultAskAnswer
impl Send for VaultAskAnswer
impl Sync for VaultAskAnswer
impl Unpin for VaultAskAnswer
impl UnsafeUnpin for VaultAskAnswer
impl UnwindSafe for VaultAskAnswer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.