Struct grin_api::types::OutputPrintable
source · 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§
source§impl OutputPrintable
impl OutputPrintable
pub fn from_output( output: &Output, chain: &Chain, block_header: Option<&BlockHeader>, include_proof: bool, include_merkle_proof: bool ) -> Result<OutputPrintable, Error>
pub fn commit(&self) -> Result<Commitment, Error>
pub fn range_proof(&self) -> Result<RangeProof, Error>
Trait Implementations§
source§impl Clone for OutputPrintable
impl Clone for OutputPrintable
source§fn clone(&self) -> OutputPrintable
fn clone(&self) -> OutputPrintable
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 OutputPrintable
impl Debug for OutputPrintable
source§impl<'de> Deserialize<'de> for OutputPrintable
impl<'de> Deserialize<'de> for OutputPrintable
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 OutputPrintable
impl RefUnwindSafe for OutputPrintable
impl Send for OutputPrintable
impl Sync for OutputPrintable
impl Unpin for OutputPrintable
impl UnwindSafe for OutputPrintable
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<'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.