pub struct Output {
pub txid: String,
pub output_index: u32,
pub output_script: Vec<u8>,
pub satoshis: u64,
pub topic: String,
pub spent: bool,
pub outputs_consumed: Vec<Outpoint>,
pub consumed_by: Vec<Outpoint>,
pub beef: Option<Vec<u8>>,
pub block_height: Option<u32>,
pub score: Option<f64>,
}Expand description
A UTXO tracked by the Overlay Services Engine.
Ported from @bsv/overlay Output interface.
Fields§
§txid: StringTransaction ID containing this output.
output_index: u32Index of this output within the transaction.
output_script: Vec<u8>Locking script bytes.
satoshis: u64Satoshi value.
topic: StringTopic this output belongs to.
spent: boolWhether this output has been spent.
outputs_consumed: Vec<Outpoint>Outpoints consumed by the transaction that created this output (its inputs).
consumed_by: Vec<Outpoint>Outpoints of transactions that later spent this output.
beef: Option<Vec<u8>>BEEF-encoded transaction data (optional, loaded on demand).
block_height: Option<u32>Block height if the transaction is mined.
score: Option<f64>Score for GASP pagination (typically a timestamp or sequence number).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Output
impl<'de> Deserialize<'de> for Output
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 Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Output
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