Struct stack_epic_api::CompactBlockPrintable
source · 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: Arc<Chain>
) -> Result<CompactBlockPrintable, Error>
pub fn from_compact_block(
cb: &CompactBlock,
chain: Arc<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 RefUnwindSafe for CompactBlockPrintable
impl Send for CompactBlockPrintable
impl Sync for CompactBlockPrintable
impl Unpin for CompactBlockPrintable
impl UnwindSafe for CompactBlockPrintable
Blanket Implementations§
§impl<T> CloneAny for Twhere
T: Any + Clone,
impl<T> CloneAny for Twhere
T: Any + Clone,
fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global>where
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global>where
T: Sync,
fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + Send + Sync + 'static, Global>where
T: Send + Sync,
§impl<'a, T> DefaultFeatures<'a> for Twhere
T: 'a + Send + Sync + Clone,
impl<'a, T> DefaultFeatures<'a> for Twhere
T: 'a + Send + Sync + Clone,
§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self. Read more§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self. Read more§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given
ptr, which was obtained from a prior call to Self::borrow(),
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self. Read more