// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // Copyright by contributors to this project. // SPDX-License-Identifier: (Apache-2.0 OR MIT)
use alloc::vec; use alloc::vec::Vec; use mls_rs_codec::{MlsDecode, MlsEncode, MlsSize};
/// A member of a MLS group. #[derive(Debug, Clone, PartialEq, Eq)] #[non_exhaustive] pubstruct Member { /// The index of this member within a group. /// /// This value is consistent for all clients and will not change as the /// group evolves. pub index: u32, /// Current identity public key and credential of this member. pub signing_identity: SigningIdentity, /// Current client [Capabilities] of this member. pub capabilities: Capabilities, /// Current leaf node extensions in use by this member. pub extensions: ExtensionList,
}
/// The index of this member within a group. /// /// This value is consistent for all clients and will not change as the /// group evolves. pubfn index(&self) -> u32 { self.index
}
/// Current identity public key and credential of this member. pubfn signing_identity(&self) -> &SigningIdentity {
&self.signing_identity
}
/// Current client [Capabilities] of this member. pubfn capabilities(&self) -> &Capabilities {
&self.capabilities
}
/// Current leaf node extensions in use by this member. pubfn extensions(&self) -> &ExtensionList {
&self.extensions
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.