Struct depo_api::request::start_recovery::StartRecoveryRequest
source · pub struct StartRecoveryRequest { /* private fields */ }Implementations§
source§impl StartRecoveryRequest
impl StartRecoveryRequest
pub fn from_fields(id: ARID, key: PublicKeyBase, recovery: String) -> Self
pub fn new(key: impl AsRef<PublicKeyBase>, recovery: impl AsRef<str>) -> Self
pub fn from_body(id: ARID, key: PublicKeyBase, body: Envelope) -> Result<Self>
pub fn id(&self) -> &ARID
pub fn key(&self) -> &PublicKeyBase
pub fn recovery(&self) -> &str
Trait Implementations§
source§impl Clone for StartRecoveryRequest
impl Clone for StartRecoveryRequest
source§fn clone(&self) -> StartRecoveryRequest
fn clone(&self) -> StartRecoveryRequest
Returns a copy of the value. Read more
1.0.0 · 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 StartRecoveryRequest
impl Debug for StartRecoveryRequest
source§impl Display for StartRecoveryRequest
impl Display for StartRecoveryRequest
source§impl From<StartRecoveryRequest> for Envelope
impl From<StartRecoveryRequest> for Envelope
source§fn from(value: StartRecoveryRequest) -> Self
fn from(value: StartRecoveryRequest) -> Self
Converts to this type from the input type.
source§impl PartialEq for StartRecoveryRequest
impl PartialEq for StartRecoveryRequest
source§fn eq(&self, other: &StartRecoveryRequest) -> bool
fn eq(&self, other: &StartRecoveryRequest) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<&Envelope> for StartRecoveryRequest
impl TryFrom<&Envelope> for StartRecoveryRequest
impl Eq for StartRecoveryRequest
impl StructuralPartialEq for StartRecoveryRequest
Auto Trait Implementations§
impl Freeze for StartRecoveryRequest
impl RefUnwindSafe for StartRecoveryRequest
impl Send for StartRecoveryRequest
impl Sync for StartRecoveryRequest
impl Unpin for StartRecoveryRequest
impl UnwindSafe for StartRecoveryRequest
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> EnvelopeEncodable for T
impl<T> EnvelopeEncodable for T
fn into_envelope(self) -> Envelope
fn to_envelope(&self) -> Envelopewhere
Self: Clone,
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more