pub struct VC {
pub contexts: Vec<Context>,
pub types: Vec<Type>,
pub credential_subject: Value,
pub proof: Option<Proof>,
pub id: ID,
pub issuer: String,
}Expand description
VC is a main object to hold entity credential
Fields§
§contexts: Vec<Context>§types: Vec<Type>§credential_subject: Value§proof: Option<Proof>§id: ID§issuer: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VC
impl<'de> Deserialize<'de> for VC
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 Proofable for VC
impl Proofable for VC
fn get_proof(&self) -> Option<Proof>
fn setup_proof(&mut self, proof: Proof) -> &mut Self
fn parse_json_bytes(bytes: Vec<u8>) -> Result<Self, ProofError>
fn remove_proof(&self) -> Self
impl StructuralPartialEq for VC
Auto Trait Implementations§
impl Freeze for VC
impl RefUnwindSafe for VC
impl Send for VC
impl Sync for VC
impl Unpin for VC
impl UnwindSafe for VC
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