pub struct Proof {
pub id: Option<Url>,
pub proof_type: String,
pub proof_purpose: String,
pub verification_method: Option<String>,
pub cryptosuite: Option<String>,
pub created: Option<DateTime<Utc>>,
pub expires: Option<DateTime<Utc>>,
pub domain: Option<Vec<String>>,
pub challenge: Option<String>,
pub previous_proof: Option<String>,
pub nonce: Option<Vec<String>>,
/* private fields */
}Expand description
Fields§
§id: Option<Url>§proof_type: String§proof_purpose: String§verification_method: Option<String>§cryptosuite: Option<String>§created: Option<DateTime<Utc>>§expires: Option<DateTime<Utc>>§domain: Option<Vec<String>>§challenge: Option<String>§previous_proof: Option<String>§nonce: Option<Vec<String>>Implementations§
Source§impl Proof
impl Proof
Sourcepub fn set_proof_type(self, proof_type: String) -> Self
pub fn set_proof_type(self, proof_type: String) -> Self
Set the type of the proof
Sourcepub fn set_proof_purpose(self, proof_purpose: String) -> Self
pub fn set_proof_purpose(self, proof_purpose: String) -> Self
Set the proofPurpose of the proof
Sourcepub fn set_verification_method(self, verification_method: String) -> Self
pub fn set_verification_method(self, verification_method: String) -> Self
Set the verificationMethod of the proof
Sourcepub fn set_crypto_suite(self, cryptosuite: String) -> Self
pub fn set_crypto_suite(self, cryptosuite: String) -> Self
Set the cryptosuite of the proof
Sourcepub fn set_created(self, created: DateTime<Utc>) -> Self
pub fn set_created(self, created: DateTime<Utc>) -> Self
Set the validFrom timestamp of the proof
Sourcepub fn set_expires(self, expires: DateTime<Utc>) -> Self
pub fn set_expires(self, expires: DateTime<Utc>) -> Self
Set the validUntil timestamp of the proof
Sourcepub fn set_domain(self, domain: Vec<String>) -> Self
pub fn set_domain(self, domain: Vec<String>) -> Self
Set the domain of the proof
Sourcepub fn set_challenge(self, challenge: String) -> Self
pub fn set_challenge(self, challenge: String) -> Self
Set the challenge of the proof
Sourcepub fn set_previous_proof(self, previous_proof: String) -> Self
pub fn set_previous_proof(self, previous_proof: String) -> Self
Set the previousProof of the proof
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Proof
impl<'de> Deserialize<'de> for Proof
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
impl StructuralPartialEq for Proof
Auto Trait Implementations§
impl Freeze for Proof
impl RefUnwindSafe for Proof
impl Send for Proof
impl Sync for Proof
impl Unpin for Proof
impl UnwindSafe for Proof
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