Struct elements::PegoutData
source · pub struct PegoutData<'txo> {
pub value: u64,
pub asset: Asset,
pub genesis_hash: BlockHash,
pub script_pubkey: ScriptBuf,
pub extra_data: Vec<&'txo [u8]>,
}
Expand description
Information about a pegout
Fields§
§value: u64
Amount to peg out
asset: Asset
Asset of pegout
genesis_hash: BlockHash
Genesis hash of the target blockchain
script_pubkey: ScriptBuf
Scriptpubkey to create on the target blockchain
extra_data: Vec<&'txo [u8]>
Remaining pegout data used by some forks of Elements
Trait Implementations§
source§impl<'txo> Clone for PegoutData<'txo>
impl<'txo> Clone for PegoutData<'txo>
source§fn clone(&self) -> PegoutData<'txo>
fn clone(&self) -> PegoutData<'txo>
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<'txo> Debug for PegoutData<'txo>
impl<'txo> Debug for PegoutData<'txo>
source§impl<'txo> Hash for PegoutData<'txo>
impl<'txo> Hash for PegoutData<'txo>
source§impl<'txo> PartialEq for PegoutData<'txo>
impl<'txo> PartialEq for PegoutData<'txo>
source§fn eq(&self, other: &PegoutData<'txo>) -> bool
fn eq(&self, other: &PegoutData<'txo>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'txo> Eq for PegoutData<'txo>
impl<'txo> StructuralPartialEq for PegoutData<'txo>
Auto Trait Implementations§
impl<'txo> RefUnwindSafe for PegoutData<'txo>
impl<'txo> Send for PegoutData<'txo>
impl<'txo> Sync for PegoutData<'txo>
impl<'txo> Unpin for PegoutData<'txo>
impl<'txo> UnwindSafe for PegoutData<'txo>
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