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