pub struct BitcoinAttestation {
pub height: u32,
}Fields§
§height: u32Trait Implementations§
Source§impl Attestation<'_> for BitcoinAttestation
impl Attestation<'_> for BitcoinAttestation
const TAG: AttestationTag = BITCOIN_TAG
fn from_raw_data(data: &[u8]) -> Result<Self, DecodeError>
fn to_raw_data_in<A: Allocator>( &self, alloc: A, ) -> Result<Vec<u8, A>, EncodeError>
fn from_raw<A: Allocator>( raw: &'a RawAttestation<A>, ) -> Result<Self, DecodeError>
fn to_raw(&self) -> Result<RawAttestation, EncodeError>
fn to_raw_in<A: Allocator>( &self, alloc: A, ) -> Result<RawAttestation<A>, EncodeError>
Source§impl Clone for BitcoinAttestation
impl Clone for BitcoinAttestation
Source§fn clone(&self) -> BitcoinAttestation
fn clone(&self) -> BitcoinAttestation
Returns a duplicate 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 BitcoinAttestation
impl Debug for BitcoinAttestation
Source§impl Display for BitcoinAttestation
impl Display for BitcoinAttestation
Source§impl PartialEq for BitcoinAttestation
impl PartialEq for BitcoinAttestation
impl Eq for BitcoinAttestation
impl StructuralPartialEq for BitcoinAttestation
Auto Trait Implementations§
impl Freeze for BitcoinAttestation
impl RefUnwindSafe for BitcoinAttestation
impl Send for BitcoinAttestation
impl Sync for BitcoinAttestation
impl Unpin for BitcoinAttestation
impl UnsafeUnpin for BitcoinAttestation
impl UnwindSafe for BitcoinAttestation
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