pub struct CredentialSubjectMembership {
pub id: String,
pub digest: Option<String>,
}Expand description
Membership Credential subject
The two directions of a membership edge share this shape and are told apart by
digest: a community-issued VMC (the membership grant) MUST omit it, and a
member-issued VMC (the membership acknowledgement) MUST carry it. Where both endpoints
are C-DIDs, as in VTN membership, digest is the only discriminator — the issuer and
subject rules cannot separate the directions.
Fields§
§id: String§digest: Option<String>Digest of the community-issued VMC this acknowledges, as DTGCredential::digest computes it.
REQUIRED on the member-issued VMC, and MUST be omitted on the community-issued VMC.
Option rather than two structs because the same property distinguishes the two
directions: a type that could not represent both could not deserialize the pair.
Trait Implementations§
Source§impl Clone for CredentialSubjectMembership
impl Clone for CredentialSubjectMembership
Source§fn clone(&self) -> CredentialSubjectMembership
fn clone(&self) -> CredentialSubjectMembership
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 CredentialSubjectMembership
impl Debug for CredentialSubjectMembership
Source§impl<'de> Deserialize<'de> for CredentialSubjectMembership
impl<'de> Deserialize<'de> for CredentialSubjectMembership
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
Auto Trait Implementations§
impl Freeze for CredentialSubjectMembership
impl RefUnwindSafe for CredentialSubjectMembership
impl Send for CredentialSubjectMembership
impl Sync for CredentialSubjectMembership
impl Unpin for CredentialSubjectMembership
impl UnsafeUnpin for CredentialSubjectMembership
impl UnwindSafe for CredentialSubjectMembership
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