pub struct PlainMessagePublicKey(/* private fields */);Expand description
Plain message structure serialized via serde.
Trait Implementations§
Source§impl Clone for PlainMessagePublicKey
impl Clone for PlainMessagePublicKey
Source§fn clone(&self) -> PlainMessagePublicKey
fn clone(&self) -> PlainMessagePublicKey
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§impl Debug for PlainMessagePublicKey
impl Debug for PlainMessagePublicKey
Source§impl PartialEq for PlainMessagePublicKey
impl PartialEq for PlainMessagePublicKey
Source§impl PlainMessagePublicKeyCore for PlainMessagePublicKey
impl PlainMessagePublicKeyCore for PlainMessagePublicKey
Source§fn encrypt(
&self,
combined_key: &SenderCombinedKey<'_, '_>,
) -> Result<EncryptedMessage, Error>
fn encrypt( &self, combined_key: &SenderCombinedKey<'_, '_>, ) -> Result<EncryptedMessage, Error>
Encrypt into EncryptedMessage
Source§fn decrypt(
encrypted_message: &EncryptedMessage,
combined_key: &ReceiverCombinedKey<'_, '_>,
) -> Result<Self, Error>where
Self: Sized,
fn decrypt(
encrypted_message: &EncryptedMessage,
combined_key: &ReceiverCombinedKey<'_, '_>,
) -> Result<Self, Error>where
Self: Sized,
Decrypt from EncryptedMessage
impl Eq for PlainMessagePublicKey
impl StructuralPartialEq for PlainMessagePublicKey
Auto Trait Implementations§
impl Freeze for PlainMessagePublicKey
impl RefUnwindSafe for PlainMessagePublicKey
impl Send for PlainMessagePublicKey
impl Sync for PlainMessagePublicKey
impl Unpin for PlainMessagePublicKey
impl UnwindSafe for PlainMessagePublicKey
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