pub struct PrivateMessage {
pub group_id: GroupId,
pub epoch: u64,
pub content_type: ContentType,
pub authenticated_data: SensitiveBytes,
pub encrypted_sender_data: SensitiveBytes,
pub ciphertext: SensitiveBytes,
}
Expand description
MLS Private Message (authenticated & encrypted)
https://www.rfc-editor.org/rfc/rfc9420.html#name-encoding-and-decoding-a-pri
§TLS Presentation Language
struct {
opaque group_id<V>;
uint64 epoch;
ContentType content_type;
opaque authenticated_data<V>;
opaque encrypted_sender_data<V>;
opaque ciphertext<V>;
} PrivateMessage;
Fields§
§group_id: GroupId
§epoch: u64
§content_type: ContentType
§authenticated_data: SensitiveBytes
§encrypted_sender_data: SensitiveBytes
§ciphertext: SensitiveBytes
Trait Implementations§
Source§impl Clone for PrivateMessage
impl Clone for PrivateMessage
Source§fn clone(&self) -> PrivateMessage
fn clone(&self) -> PrivateMessage
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 PrivateMessage
impl Debug for PrivateMessage
Source§impl<'de> Deserialize<'de> for PrivateMessage
impl<'de> Deserialize<'de> for PrivateMessage
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
Source§impl Deserialize for PrivateMessage
impl Deserialize for PrivateMessage
Source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
This function deserializes the
bytes
from the provided a std::io::Read
and returns the populated struct. Read moreSource§impl PartialEq for PrivateMessage
impl PartialEq for PrivateMessage
Source§impl Serialize for &PrivateMessage
impl Serialize for &PrivateMessage
Source§impl Serialize for PrivateMessage
impl Serialize for PrivateMessage
Source§impl Serialize for PrivateMessage
impl Serialize for PrivateMessage
Source§impl Size for &PrivateMessage
impl Size for &PrivateMessage
fn tls_serialized_len(&self) -> usize
Source§impl Size for PrivateMessage
impl Size for PrivateMessage
fn tls_serialized_len(&self) -> usize
impl Eq for PrivateMessage
impl StructuralPartialEq for PrivateMessage
Auto Trait Implementations§
impl Freeze for PrivateMessage
impl RefUnwindSafe for PrivateMessage
impl Send for PrivateMessage
impl Sync for PrivateMessage
impl Unpin for PrivateMessage
impl UnwindSafe for PrivateMessage
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