pub struct CipherMessage {
pub cipher_text: Vec<u8>,
pub nonce: Nonce,
}Expand description
Represents a cipher message containing encrypted data and a nonce.
Fields§
§cipher_text: Vec<u8>Encrypted data
nonce: NonceNonce used for encryption
Implementations§
Trait Implementations§
Source§impl Clone for CipherMessage
impl Clone for CipherMessage
Source§fn clone(&self) -> CipherMessage
fn clone(&self) -> CipherMessage
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 CipherMessage
impl Debug for CipherMessage
Source§impl<T: FromBytes> Decrypt<T> for CipherMessage
impl<T: FromBytes> Decrypt<T> for CipherMessage
Source§impl<'de> Deserialize<'de> for CipherMessage
impl<'de> Deserialize<'de> for CipherMessage
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CipherMessage
impl RefUnwindSafe for CipherMessage
impl Send for CipherMessage
impl Sync for CipherMessage
impl Unpin for CipherMessage
impl UnwindSafe for CipherMessage
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