pub struct OutputInfo {
pub out_type: OutputType,
pub value: Amount,
pub pubkey_stats: Vec<PubKeyInfo>,
}
Fields§
§out_type: OutputType
§value: Amount
§pubkey_stats: Vec<PubKeyInfo>
Implementations§
Source§impl OutputInfo
impl OutputInfo
pub fn new(output: &TxOut) -> Result<OutputInfo, OutputError>
Sourcepub fn is_opreturn(&self) -> bool
pub fn is_opreturn(&self) -> bool
Returns true if the output is an OP_RETURN output (of any OpReturnFlavor).
Trait Implementations§
Source§impl Clone for OutputInfo
impl Clone for OutputInfo
Source§fn clone(&self) -> OutputInfo
fn clone(&self) -> OutputInfo
Returns a duplicate 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 OutputInfo
impl Debug for OutputInfo
Source§impl PartialEq for OutputInfo
impl PartialEq for OutputInfo
impl Eq for OutputInfo
impl StructuralPartialEq for OutputInfo
Auto Trait Implementations§
impl Freeze for OutputInfo
impl RefUnwindSafe for OutputInfo
impl Send for OutputInfo
impl Sync for OutputInfo
impl Unpin for OutputInfo
impl UnwindSafe for OutputInfo
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