pub struct PlainMessageSharedKeyDeterministic(/* private fields */);Expand description
Plain message structure serialized via serde.
Trait Implementations§
Source§fn clone(&self) -> PlainMessageSharedKeyDeterministic
fn clone(&self) -> PlainMessageSharedKeyDeterministic
Returns a duplicate 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§fn eq(&self, other: &PlainMessageSharedKeyDeterministic) -> bool
fn eq(&self, other: &PlainMessageSharedKeyDeterministic) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§fn encrypt<S>(&self, shared_key: &S) -> Result<EncryptedMessage, Error>where
S: AsSharedKey,
fn encrypt<S>(&self, shared_key: &S) -> Result<EncryptedMessage, Error>where
S: AsSharedKey,
Encrypt into EncryptedMessage
Source§fn decrypt<S>(
encrypted_message: &EncryptedMessage,
shared_key: &S,
) -> Result<Self, Error>where
Self: Sized,
S: AsSharedKey,
fn decrypt<S>(
encrypted_message: &EncryptedMessage,
shared_key: &S,
) -> Result<Self, Error>where
Self: Sized,
S: AsSharedKey,
Decrypt from EncryptedMessage
Auto Trait Implementations§
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