Struct depo_api::request::update_recovery::UpdateRecoveryRequest
source · pub struct UpdateRecoveryRequest { /* private fields */ }Implementations§
source§impl UpdateRecoveryRequest
impl UpdateRecoveryRequest
pub fn from_fields( id: ARID, key: PublicKeyBase, recovery: Option<String> ) -> Self
pub fn new(key: impl AsRef<PublicKeyBase>, recovery: Option<&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) -> Option<&String>
Trait Implementations§
source§impl Clone for UpdateRecoveryRequest
impl Clone for UpdateRecoveryRequest
source§fn clone(&self) -> UpdateRecoveryRequest
fn clone(&self) -> UpdateRecoveryRequest
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 UpdateRecoveryRequest
impl Debug for UpdateRecoveryRequest
source§impl Display for UpdateRecoveryRequest
impl Display for UpdateRecoveryRequest
source§impl From<UpdateRecoveryRequest> for Envelope
impl From<UpdateRecoveryRequest> for Envelope
source§fn from(value: UpdateRecoveryRequest) -> Self
fn from(value: UpdateRecoveryRequest) -> Self
Converts to this type from the input type.
source§impl PartialEq for UpdateRecoveryRequest
impl PartialEq for UpdateRecoveryRequest
source§fn eq(&self, other: &UpdateRecoveryRequest) -> bool
fn eq(&self, other: &UpdateRecoveryRequest) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<&Envelope> for UpdateRecoveryRequest
impl TryFrom<&Envelope> for UpdateRecoveryRequest
impl Eq for UpdateRecoveryRequest
impl StructuralPartialEq for UpdateRecoveryRequest
Auto Trait Implementations§
impl Freeze for UpdateRecoveryRequest
impl RefUnwindSafe for UpdateRecoveryRequest
impl Send for UpdateRecoveryRequest
impl Sync for UpdateRecoveryRequest
impl Unpin for UpdateRecoveryRequest
impl UnwindSafe for UpdateRecoveryRequest
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