pub struct PartyIdentity(/* private fields */);Expand description
One party’s identity slot in the COSE_KDF_Context (RFC 9053 §5.2).
v1 exposes identity only; the nonce and “other” slots are pinned nil by the profile (their header parameters are rejected on decode).
Implementations§
Source§impl PartyIdentity
impl PartyIdentity
Sourcepub fn from_bytes(identity: Vec<u8>) -> Result<Self, ProfileError>
pub fn from_bytes(identity: Vec<u8>) -> Result<Self, ProfileError>
A concrete party identity
§Errors
ProfileError::EmptyPartyIdentity if the bytes are empty; an empty
identity is indistinguishable in intent from nil, so the profile
forbids it.
Trait Implementations§
Source§impl Clone for PartyIdentity
impl Clone for PartyIdentity
Source§fn clone(&self) -> PartyIdentity
fn clone(&self) -> PartyIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PartyIdentity
impl Debug for PartyIdentity
impl Eq for PartyIdentity
Source§impl PartialEq for PartyIdentity
impl PartialEq for PartyIdentity
Source§fn eq(&self, other: &PartyIdentity) -> bool
fn eq(&self, other: &PartyIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PartyIdentity
Auto Trait Implementations§
impl Freeze for PartyIdentity
impl RefUnwindSafe for PartyIdentity
impl Send for PartyIdentity
impl Sync for PartyIdentity
impl Unpin for PartyIdentity
impl UnsafeUnpin for PartyIdentity
impl UnwindSafe for PartyIdentity
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