pub struct LeafNode {
pub encryption_key: HpkePublicKey,
pub signature_key: SignaturePublicKey,
pub credential: Credential,
pub capabilities: Capabilities,
pub source: LeafNodeSource,
pub extensions: Vec<Extension>,
pub signature: SensitiveBytes,
}
Fields§
§encryption_key: HpkePublicKey
§signature_key: SignaturePublicKey
§credential: Credential
§capabilities: Capabilities
§source: LeafNodeSource
§extensions: Vec<Extension>
§signature: SensitiveBytes
Implementations§
Source§impl LeafNode
impl LeafNode
pub fn requires_member_info(&self) -> bool
pub fn parent_hash(&self) -> Option<&[u8]>
pub fn to_tbs<'a>( &'a self, member_info: Option<LeafNodeMemberInfo<'a>>, ) -> Option<LeafNodeTBS<'a>>
pub fn application_id(&self) -> Option<&[u8]>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LeafNode
impl<'de> Deserialize<'de> for LeafNode
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 LeafNode
impl Deserialize for LeafNode
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 LeafNode
impl StructuralPartialEq for LeafNode
Auto Trait Implementations§
impl Freeze for LeafNode
impl RefUnwindSafe for LeafNode
impl Send for LeafNode
impl Sync for LeafNode
impl Unpin for LeafNode
impl UnwindSafe for LeafNode
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