pub struct BlockHeader { /* private fields */ }Expand description
Wrapper over elements::BlockHeader
Implementations§
Source§impl BlockHeader
impl BlockHeader
Sourcepub fn block_hash(&self) -> String
pub fn block_hash(&self) -> String
Get the block hash
Sourcepub fn prev_blockhash(&self) -> String
pub fn prev_blockhash(&self) -> String
Get the previous block hash
Sourcepub fn merkle_root(&self) -> String
pub fn merkle_root(&self) -> String
Get the merkle root
Trait Implementations§
Source§impl Clone for BlockHeader
impl Clone for BlockHeader
Source§fn clone(&self) -> BlockHeader
fn clone(&self) -> BlockHeader
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 BlockHeader
impl Debug for BlockHeader
Source§impl From<BlockHeader> for BlockHeader
impl From<BlockHeader> for BlockHeader
Source§fn from(inner: ElementsBlockHeader) -> Self
fn from(inner: ElementsBlockHeader) -> Self
Converts to this type from the input type.
Source§impl From<BlockHeader> for BlockHeader
impl From<BlockHeader> for BlockHeader
Source§fn from(value: BlockHeader) -> Self
fn from(value: BlockHeader) -> Self
Converts to this type from the input type.
Source§impl<UT> LiftRef<UT> for BlockHeader
impl<UT> LiftRef<UT> for BlockHeader
type LiftType = Arc<BlockHeader>
Source§impl<UT> LowerError<UT> for BlockHeader
impl<UT> LowerError<UT> for BlockHeader
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for BlockHeader
impl<UT> LowerReturn<UT> for BlockHeader
Source§type ReturnType = <Arc<BlockHeader> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<BlockHeader> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl<UT> TypeId<UT> for BlockHeader
impl<UT> TypeId<UT> for BlockHeader
Auto Trait Implementations§
impl Freeze for BlockHeader
impl RefUnwindSafe for BlockHeader
impl Send for BlockHeader
impl Sync for BlockHeader
impl Unpin for BlockHeader
impl UnwindSafe for BlockHeader
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more