Available on crate feature
events
only.Expand description
Ciphertext information holding the ciphertext and message type.
Used for messages encrypted with the m.olm.v1.curve25519-aes-sha2
algorithm.
Fields
body: String
The encrypted payload.
message_type: UInt
The Olm message type.
Implementations
sourceimpl CiphertextInfo
impl CiphertextInfo
sourcepub fn new(body: String, message_type: UInt) -> CiphertextInfo
pub fn new(body: String, message_type: UInt) -> CiphertextInfo
Creates a new CiphertextInfo
with the given body and type.
Trait Implementations
sourceimpl Clone for CiphertextInfo
impl Clone for CiphertextInfo
sourcefn clone(&self) -> CiphertextInfo
fn clone(&self) -> CiphertextInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CiphertextInfo
impl Debug for CiphertextInfo
sourceimpl<'de> Deserialize<'de> for CiphertextInfo
impl<'de> Deserialize<'de> for CiphertextInfo
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<CiphertextInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<CiphertextInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for CiphertextInfo
impl Serialize for CiphertextInfo
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for CiphertextInfo
impl Send for CiphertextInfo
impl Sync for CiphertextInfo
impl Unpin for CiphertextInfo
impl UnwindSafe for CiphertextInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more