pub struct BlockPrintable {
pub header: BlockHeaderPrintable,
pub inputs: Vec<String>,
pub outputs: Vec<OutputPrintable>,
pub kernels: Vec<TxKernelPrintable>,
}Fields§
§header: BlockHeaderPrintableThe block header
inputs: Vec<String>§outputs: Vec<OutputPrintable>A printable version of the outputs
kernels: Vec<TxKernelPrintable>A printable version of the transaction kernels
Implementations§
Source§impl BlockPrintable
impl BlockPrintable
pub fn from_block( block: &Block, chain: &Chain, include_proof: bool, include_merkle_proof: bool, ) -> Result<BlockPrintable, Error>
Trait Implementations§
Source§impl Clone for BlockPrintable
impl Clone for BlockPrintable
Source§fn clone(&self) -> BlockPrintable
fn clone(&self) -> BlockPrintable
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 BlockPrintable
impl Debug for BlockPrintable
Source§impl<'de> Deserialize<'de> for BlockPrintable
impl<'de> Deserialize<'de> for BlockPrintable
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 BlockPrintable
impl RefUnwindSafe for BlockPrintable
impl Send for BlockPrintable
impl Sync for BlockPrintable
impl Unpin for BlockPrintable
impl UnwindSafe for BlockPrintable
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.