pub struct StatusListSubject {
pub id: Option<String>,
pub type: Option<String>,
pub status_purpose: String,
pub encoded_list: String,
}Expand description
The credentialSubject of a status list credential (spec §6.3.3.3).
Fields§
§id: Option<String>Subject identifier, when present.
type: Option<String>Subject type; STATUS_LIST_SUBJECT_TYPE when present.
status_purpose: StringThe purpose this list expresses. A String here, NOT the
StatusPurpose enum the envelope entry uses, and the asymmetry is
the spec’s: an unrecognized purpose on the ENVELOPE is malformed wire
(§6.3.3.5, refused at §8.3 step 1), while an unrecognized purpose in
the fetched DOCUMENT is §6.3.3.4 case 2 — the status could not be
established — and carries APH_E008. Parsing it as an enum here would
collapse the second case into the first.
encoded_list: StringMultibase base64url of the GZIP-compressed bitstring.
Trait Implementations§
Source§impl Clone for StatusListSubject
impl Clone for StatusListSubject
Source§fn clone(&self) -> StatusListSubject
fn clone(&self) -> StatusListSubject
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 StatusListSubject
impl Debug for StatusListSubject
Source§impl<'de> Deserialize<'de> for StatusListSubject
impl<'de> Deserialize<'de> for StatusListSubject
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 StatusListSubject
impl RefUnwindSafe for StatusListSubject
impl Send for StatusListSubject
impl Sync for StatusListSubject
impl Unpin for StatusListSubject
impl UnsafeUnpin for StatusListSubject
impl UnwindSafe for StatusListSubject
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