pub struct ServiceProof {
pub proof_type: ProofType,
pub proof_data: Vec<u8>,
pub signatures: Vec<ProofSignature>,
pub attestation: Option<Vec<u8>>,
}Expand description
Proof of service for settlement verification
Fields§
§proof_type: ProofTypeProof type
proof_data: Vec<u8>Proof data
signatures: Vec<ProofSignature>Signatures from relevant parties
attestation: Option<Vec<u8>>Attestation (if service was performed in TEE)
Implementations§
Source§impl ServiceProof
impl ServiceProof
Sourcepub fn add_signature(&mut self, signature: ProofSignature)
pub fn add_signature(&mut self, signature: ProofSignature)
Adds a signature to the proof
Sourcepub fn with_attestation(self, attestation: Vec<u8>) -> Self
pub fn with_attestation(self, attestation: Vec<u8>) -> Self
Adds an attestation
Trait Implementations§
Source§impl Clone for ServiceProof
impl Clone for ServiceProof
Source§fn clone(&self) -> ServiceProof
fn clone(&self) -> ServiceProof
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 ServiceProof
impl Debug for ServiceProof
Source§impl<'de> Deserialize<'de> for ServiceProof
impl<'de> Deserialize<'de> for ServiceProof
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 Eq for ServiceProof
Source§impl PartialEq for ServiceProof
impl PartialEq for ServiceProof
Source§fn eq(&self, other: &ServiceProof) -> bool
fn eq(&self, other: &ServiceProof) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ServiceProof
impl Serialize for ServiceProof
impl StructuralPartialEq for ServiceProof
Auto Trait Implementations§
impl Freeze for ServiceProof
impl RefUnwindSafe for ServiceProof
impl Send for ServiceProof
impl Sync for ServiceProof
impl Unpin for ServiceProof
impl UnsafeUnpin for ServiceProof
impl UnwindSafe for ServiceProof
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