pub struct BeginRecoveryResponse {
pub recovery_attempt_id: String,
pub window_secs: Option<Duration>,
pub completes_at: Option<Timestamp>,
pub paper_code_kdf: Option<PaperCodeKdfMaterial>,
}Fields§
§recovery_attempt_id: StringStable id of the recovery_attempts row. Echoed back on
SubmitRecoveryProof / VetoRecovery / CompleteRecovery and named inside
the social attestation message to bind signatures to this attempt.
window_secs: Option<Duration>The veto window for this attempt (copied from the declared method’s
window_secs).
completes_at: Option<Timestamp>Wall-clock instant at which CompleteRecovery becomes eligible (started_at + window_secs).
paper_code_kdf: Option<PaperCodeKdfMaterial>Present when BeginRecoveryRequest.kind is paper_code.
Trait Implementations§
Source§impl Clone for BeginRecoveryResponse
impl Clone for BeginRecoveryResponse
Source§fn clone(&self) -> BeginRecoveryResponse
fn clone(&self) -> BeginRecoveryResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BeginRecoveryResponse
impl Debug for BeginRecoveryResponse
Source§impl Default for BeginRecoveryResponse
impl Default for BeginRecoveryResponse
impl Eq for BeginRecoveryResponse
Source§impl Hash for BeginRecoveryResponse
impl Hash for BeginRecoveryResponse
Source§impl Message for BeginRecoveryResponse
impl Message for BeginRecoveryResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for BeginRecoveryResponse
impl PartialEq for BeginRecoveryResponse
impl StructuralPartialEq for BeginRecoveryResponse
Auto Trait Implementations§
impl Freeze for BeginRecoveryResponse
impl RefUnwindSafe for BeginRecoveryResponse
impl Send for BeginRecoveryResponse
impl Sync for BeginRecoveryResponse
impl Unpin for BeginRecoveryResponse
impl UnsafeUnpin for BeginRecoveryResponse
impl UnwindSafe for BeginRecoveryResponse
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