pub struct DppCredentialSubject {
pub id: String,
pub name: String,
pub role: CredentialRole,
pub country: String,
pub sectors: Vec<String>,
pub product_categories: Vec<String>,
}Expand description
The claims inside a DPP access credential.
Fields§
§id: StringDID of the credential holder (the entity being granted access).
name: StringLegal name of the credential holder.
role: CredentialRoleThe role being granted.
country: StringISO 3166-1 alpha-2 country code of the holder’s registration.
sectors: Vec<String>Sector(s) this credential applies to (e.g., ["textile"]).
Empty means all sectors.
product_categories: Vec<String>Specific product categories this credential covers. Empty means all categories within the sectors.
Trait Implementations§
Source§impl Clone for DppCredentialSubject
impl Clone for DppCredentialSubject
Source§fn clone(&self) -> DppCredentialSubject
fn clone(&self) -> DppCredentialSubject
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 DppCredentialSubject
impl Debug for DppCredentialSubject
Source§impl<'de> Deserialize<'de> for DppCredentialSubject
impl<'de> Deserialize<'de> for DppCredentialSubject
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 PartialEq for DppCredentialSubject
impl PartialEq for DppCredentialSubject
Source§impl Serialize for DppCredentialSubject
impl Serialize for DppCredentialSubject
impl StructuralPartialEq for DppCredentialSubject
Auto Trait Implementations§
impl Freeze for DppCredentialSubject
impl RefUnwindSafe for DppCredentialSubject
impl Send for DppCredentialSubject
impl Sync for DppCredentialSubject
impl Unpin for DppCredentialSubject
impl UnsafeUnpin for DppCredentialSubject
impl UnwindSafe for DppCredentialSubject
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