Struct epic_api::OutputPrintable [−][src]
pub struct OutputPrintable {
pub output_type: OutputType,
pub commit: Commitment,
pub spent: bool,
pub proof: Option<String>,
pub proof_hash: String,
pub block_height: Option<u64>,
pub merkle_proof: Option<MerkleProof>,
pub mmr_index: u64,
}
Fields
output_type: OutputType
The type of output Coinbase|Transaction
commit: Commitment
The homomorphic commitment representing the output’s amount (as hex string)
spent: bool
Whether the output has been spent
proof: Option<String>
Rangeproof (as hex string)
proof_hash: String
Rangeproof hash (as hex string)
block_height: Option<u64>
Block height at which the output is found
merkle_proof: Option<MerkleProof>
Merkle Proof
mmr_index: u64
MMR Position
Implementations
pub fn from_output(
output: &Output,
chain: Arc<Chain>,
block_header: Option<&BlockHeader>,
include_proof: bool,
include_merkle_proof: bool
) -> Result<OutputPrintable, Error>
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for OutputPrintable
impl Send for OutputPrintable
impl Sync for OutputPrintable
impl Unpin for OutputPrintable
impl UnwindSafe for OutputPrintable
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global> where
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, 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
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