Struct bitcoin_explorer::parser::proto::simple_proto::SBlock
source · pub struct SBlock {
pub header: SBlockHeader,
pub txdata: Vec<STransaction>,
}
Expand description
Block in a simple
format.
A SBlock
compared to a Block
has the following more
attributes precomputed:
block hash
transaction id
output addresses
output script types
But is has the following attributes removed:
nounce
previous block hash
merkle root
bits
input witness
output public script key hash
SBlock
reduces the amount of data memorized or transferred.
Fields§
§header: SBlockHeader
§txdata: Vec<STransaction>
Trait Implementations§
source§impl<'de> Deserialize<'de> for SBlock
impl<'de> Deserialize<'de> for SBlock
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 PartialEq<SBlock> for SBlock
impl PartialEq<SBlock> for SBlock
impl Eq for SBlock
impl StructuralEq for SBlock
impl StructuralPartialEq for SBlock
Auto Trait Implementations§
impl RefUnwindSafe for SBlock
impl Send for SBlock
impl Sync for SBlock
impl Unpin for SBlock
impl UnwindSafe for SBlock
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