pub struct BridgeProof {
pub proof_type: BridgeProofType,
pub proof_data: Vec<u8>,
pub signatures: Vec<ValidatorSignature>,
}Expand description
Proof for a bridge transfer
Fields§
§proof_type: BridgeProofTypeProof type
proof_data: Vec<u8>Proof data
signatures: Vec<ValidatorSignature>Validator signatures (if applicable)
Implementations§
Source§impl BridgeProof
impl BridgeProof
Sourcepub fn new(proof_type: BridgeProofType, proof_data: Vec<u8>) -> Self
pub fn new(proof_type: BridgeProofType, proof_data: Vec<u8>) -> Self
Creates a new bridge proof
Sourcepub fn add_signature(&mut self, signature: ValidatorSignature)
pub fn add_signature(&mut self, signature: ValidatorSignature)
Adds a validator signature
Trait Implementations§
Source§impl Clone for BridgeProof
impl Clone for BridgeProof
Source§fn clone(&self) -> BridgeProof
fn clone(&self) -> BridgeProof
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 BridgeProof
impl Debug for BridgeProof
Source§impl<'de> Deserialize<'de> for BridgeProof
impl<'de> Deserialize<'de> for BridgeProof
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 BridgeProof
Source§impl PartialEq for BridgeProof
impl PartialEq for BridgeProof
Source§fn eq(&self, other: &BridgeProof) -> bool
fn eq(&self, other: &BridgeProof) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BridgeProof
impl Serialize for BridgeProof
impl StructuralPartialEq for BridgeProof
Auto Trait Implementations§
impl Freeze for BridgeProof
impl RefUnwindSafe for BridgeProof
impl Send for BridgeProof
impl Sync for BridgeProof
impl Unpin for BridgeProof
impl UnsafeUnpin for BridgeProof
impl UnwindSafe for BridgeProof
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