pub struct CompactBlockPrintable {
pub header: BlockHeaderPrintable,
pub out_full: Vec<OutputPrintable>,
pub kern_full: Vec<TxKernelPrintable>,
pub kern_ids: Vec<String>,
}Fields§
§header: BlockHeaderPrintableThe block header
out_full: Vec<OutputPrintable>Full outputs, specifically coinbase output(s)
kern_full: Vec<TxKernelPrintable>Full kernels, specifically coinbase kernel(s)
kern_ids: Vec<String>Kernels (hex short_ids)
Implementations§
Source§impl CompactBlockPrintable
impl CompactBlockPrintable
Sourcepub fn from_compact_block(
cb: &CompactBlock,
chain: &Chain,
) -> Result<CompactBlockPrintable, Error>
pub fn from_compact_block( cb: &CompactBlock, chain: &Chain, ) -> Result<CompactBlockPrintable, Error>
Convert a compact block into a printable representation suitable for api response
Trait Implementations§
Source§impl Clone for CompactBlockPrintable
impl Clone for CompactBlockPrintable
Source§fn clone(&self) -> CompactBlockPrintable
fn clone(&self) -> CompactBlockPrintable
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 Debug for CompactBlockPrintable
impl Debug for CompactBlockPrintable
Source§impl<'de> Deserialize<'de> for CompactBlockPrintable
impl<'de> Deserialize<'de> for CompactBlockPrintable
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
Auto Trait Implementations§
impl Freeze for CompactBlockPrintable
impl RefUnwindSafe for CompactBlockPrintable
impl Send for CompactBlockPrintable
impl Sync for CompactBlockPrintable
impl Unpin for CompactBlockPrintable
impl UnwindSafe for CompactBlockPrintable
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<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
Source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.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> 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<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
Source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.