Struct taple_core::ValidationProof 
source · pub struct ValidationProof {
    pub subject_id: DigestIdentifier,
    pub schema_id: String,
    pub namespace: String,
    pub name: String,
    pub subject_public_key: KeyIdentifier,
    pub governance_id: DigestIdentifier,
    pub genesis_governance_version: u64,
    pub sn: u64,
    pub prev_event_hash: DigestIdentifier,
    pub event_hash: DigestIdentifier,
    pub governance_version: u64,
}Expand description
A struct representing a validation proof.
Fields§
§subject_id: DigestIdentifierThe identifier of the subject being validated.
schema_id: StringThe identifier of the schema used to validate the subject.
namespace: StringThe namespace of the subject being validated.
name: StringThe name of the subject being validated.
subject_public_key: KeyIdentifierThe identifier of the public key of the subject being validated.
governance_id: DigestIdentifierThe identifier of the governance contract associated with the subject being validated.
genesis_governance_version: u64The version of the governance contract that created the subject being validated.
sn: u64The sequence number of the subject being validated.
prev_event_hash: DigestIdentifierThe identifier of the previous event in the validation chain.
event_hash: DigestIdentifierThe identifier of the current event in the validation chain.
governance_version: u64The version of the governance contract used to validate the subject.
Implementations§
source§impl ValidationProof
 
impl ValidationProof
pub fn new_from_genesis_event( start_request: StartRequest, event_hash: DigestIdentifier, governance_version: u64, subject_id: DigestIdentifier ) -> Self
pub fn new_from_transfer_event( subject: &Subject, sn: u64, prev_event_hash: DigestIdentifier, event_hash: DigestIdentifier, governance_version: u64, subject_public_key: KeyIdentifier ) -> Self
pub fn new( subject: &Subject, sn: u64, prev_event_hash: DigestIdentifier, event_hash: DigestIdentifier, governance_version: u64 ) -> Self
pub fn get_metadata(&self) -> Metadata
pub fn is_similar(&self, other: &ValidationProof) -> bool
Trait Implementations§
source§impl BorshDeserialize for ValidationProofwhere
    DigestIdentifier: BorshDeserialize,
    String: BorshDeserialize,
    KeyIdentifier: BorshDeserialize,
    u64: BorshDeserialize,
 
impl BorshDeserialize for ValidationProofwhere DigestIdentifier: BorshDeserialize, String: BorshDeserialize, KeyIdentifier: BorshDeserialize, u64: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
 
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
 
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl BorshSerialize for ValidationProofwhere
    DigestIdentifier: BorshSerialize,
    String: BorshSerialize,
    KeyIdentifier: BorshSerialize,
    u64: BorshSerialize,
 
impl BorshSerialize for ValidationProofwhere DigestIdentifier: BorshSerialize, String: BorshSerialize, KeyIdentifier: BorshSerialize, u64: BorshSerialize,
source§impl Clone for ValidationProof
 
impl Clone for ValidationProof
source§fn clone(&self) -> ValidationProof
 
fn clone(&self) -> ValidationProof
Returns a copy of the value. Read more
1.0.0 · 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 ValidationProof
 
impl Debug for ValidationProof
source§impl<'de> Deserialize<'de> for ValidationProof
 
impl<'de> Deserialize<'de> for ValidationProof
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<ValidationProof> for ValidationProof
 
impl PartialEq<ValidationProof> for ValidationProof
source§fn eq(&self, other: &ValidationProof) -> bool
 
fn eq(&self, other: &ValidationProof) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl Serialize for ValidationProof
 
impl Serialize for ValidationProof
impl Eq for ValidationProof
impl StructuralEq for ValidationProof
impl StructuralPartialEq for ValidationProof
Auto Trait Implementations§
impl RefUnwindSafe for ValidationProof
impl Send for ValidationProof
impl Sync for ValidationProof
impl Unpin for ValidationProof
impl UnwindSafe for ValidationProof
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
source§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more