pub struct GroupInfo {
pub group_context: GroupContext,
pub extensions: Vec<Extension>,
pub confirmation_tag: Mac,
pub signer: LeafIndex,
pub signature: SensitiveBytes,
}
Fields§
§group_context: GroupContext
§extensions: Vec<Extension>
§confirmation_tag: Mac
§signer: LeafIndex
§signature: SensitiveBytes
Implementations§
Source§impl GroupInfo
impl GroupInfo
pub fn to_tbs(&self) -> GroupInfoTBS<'_>
Sourcepub fn ratchet_tree(&self) -> Option<&RatchetTree>
pub fn ratchet_tree(&self) -> Option<&RatchetTree>
Returns the RatchetTree extension if present
Sourcepub fn external_pub(&self) -> Option<&[u8]>
pub fn external_pub(&self) -> Option<&[u8]>
Returns the ExternalPub extension if present
pub fn into_mls_message(self, protocol_version: ProtocolVersion) -> MlsMessage
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GroupInfo
impl<'de> Deserialize<'de> for GroupInfo
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 GroupInfo
impl Deserialize for GroupInfo
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 moreimpl Eq for GroupInfo
impl StructuralPartialEq for GroupInfo
Auto Trait Implementations§
impl Freeze for GroupInfo
impl RefUnwindSafe for GroupInfo
impl Send for GroupInfo
impl Sync for GroupInfo
impl Unpin for GroupInfo
impl UnwindSafe for GroupInfo
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