Struct bitcoin_explorer::parser::proto::simple_proto::STransaction
source · pub struct STransaction {
pub txid: Txid,
pub input: Vec<STxIn>,
pub output: Vec<STxOut>,
}
Expand description
STransaction
compared to Transaction
has the following
precomputed:
transaction ID
output script type
output addresses
It has the following removed:
input witness
output public script key hash
It reduces the amount of data memorized or transferred (to python).
Fields§
§txid: Txid
§input: Vec<STxIn>
List of inputs
output: Vec<STxOut>
List of outputs
Trait Implementations§
source§impl Clone for STransaction
impl Clone for STransaction
source§fn clone(&self) -> STransaction
fn clone(&self) -> STransaction
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 STransaction
impl Debug for STransaction
source§impl<'de> Deserialize<'de> for STransaction
impl<'de> Deserialize<'de> for STransaction
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
source§impl From<Transaction> for STransaction
impl From<Transaction> for STransaction
source§fn from(tx: Transaction) -> STransaction
fn from(tx: Transaction) -> STransaction
Converts to this type from the input type.
source§impl PartialEq<STransaction> for STransaction
impl PartialEq<STransaction> for STransaction
source§fn eq(&self, other: &STransaction) -> bool
fn eq(&self, other: &STransaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for STransaction
impl Serialize for STransaction
impl Eq for STransaction
impl StructuralEq for STransaction
impl StructuralPartialEq for STransaction
Auto Trait Implementations§
impl RefUnwindSafe for STransaction
impl Send for STransaction
impl Sync for STransaction
impl Unpin for STransaction
impl UnwindSafe for STransaction
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