Struct grin_api::CompactBlockPrintable [−][src]
pub struct CompactBlockPrintable { pub header: BlockHeaderPrintable, pub out_full: Vec<OutputPrintable>, pub kern_full: Vec<TxKernelPrintable>, pub kern_ids: Vec<String>, }
Fields
header: BlockHeaderPrintable
The 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
pub fn from_compact_block(
cb: &CompactBlock,
chain: &Chain
) -> Result<CompactBlockPrintable, Error>
[src]
pub fn from_compact_block(
cb: &CompactBlock,
chain: &Chain
) -> Result<CompactBlockPrintable, Error>
[src]Convert a compact block into a printable representation suitable for api response
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]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
Mutably borrows from an owned value. Read more
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
pub fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
pub 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. Read more
pub fn self_address_mut(&mut self) -> *mut ()
pub fn self_address_mut(&mut self) -> *mut ()
Returns the address of self
. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
pub fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
pub 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. Read more
pub fn self_address_mut(&mut self) -> *mut ()
pub fn self_address_mut(&mut self) -> *mut ()
Returns the address of self
. Read more
impl<T> SafeBorrow<T> for T where
T: ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
pub 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
type Output = T
type Output = T
Should always be Self