pub struct OwnershipProofEnvelope {
pub proof_id: ProofId,
pub profile_id: String,
pub policy_ids: Vec<PolicyId>,
pub public_inputs: Vec<u8>,
pub proof_data: Vec<u8>,
pub proof_type: OwnershipProofType,
pub subject_nullifier: [u8; 32],
pub generated_at: Timestamp,
pub expires_at: Timestamp,
}Expand description
Ownership proof envelope
Fields§
§proof_id: ProofIdProof ID
profile_id: StringProfile ID
policy_ids: Vec<PolicyId>Policy ID(s) this proof satisfies
public_inputs: Vec<u8>Public inputs (serialized JSON)
proof_data: Vec<u8>Proof data
proof_type: OwnershipProofTypeProof type
subject_nullifier: [u8; 32]Subject nullifier
generated_at: TimestampGenerated timestamp
expires_at: TimestampExpires at
Implementations§
Trait Implementations§
Source§impl Clone for OwnershipProofEnvelope
impl Clone for OwnershipProofEnvelope
Source§fn clone(&self) -> OwnershipProofEnvelope
fn clone(&self) -> OwnershipProofEnvelope
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 OwnershipProofEnvelope
impl Debug for OwnershipProofEnvelope
Source§impl<'de> Deserialize<'de> for OwnershipProofEnvelope
impl<'de> Deserialize<'de> for OwnershipProofEnvelope
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 OwnershipProofEnvelope
impl PartialEq for OwnershipProofEnvelope
Source§fn eq(&self, other: &OwnershipProofEnvelope) -> bool
fn eq(&self, other: &OwnershipProofEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OwnershipProofEnvelope
impl Serialize for OwnershipProofEnvelope
impl Eq for OwnershipProofEnvelope
impl StructuralPartialEq for OwnershipProofEnvelope
Auto Trait Implementations§
impl Freeze for OwnershipProofEnvelope
impl RefUnwindSafe for OwnershipProofEnvelope
impl Send for OwnershipProofEnvelope
impl Sync for OwnershipProofEnvelope
impl Unpin for OwnershipProofEnvelope
impl UnsafeUnpin for OwnershipProofEnvelope
impl UnwindSafe for OwnershipProofEnvelope
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