Struct rosetta_types::block_transaction::BlockTransaction
source · pub struct BlockTransaction {
pub block_identifier: BlockIdentifier,
pub transaction: Transaction,
}
Expand description
BlockTransaction : BlockTransaction contains a populated Transaction and the BlockIdentifier that contains it.
Fields§
§block_identifier: BlockIdentifier
§transaction: Transaction
Implementations§
source§impl BlockTransaction
impl BlockTransaction
sourcepub fn new(
block_identifier: BlockIdentifier,
transaction: Transaction
) -> BlockTransaction
pub fn new( block_identifier: BlockIdentifier, transaction: Transaction ) -> BlockTransaction
BlockTransaction contains a populated Transaction and the BlockIdentifier that contains it.
Trait Implementations§
source§impl Clone for BlockTransaction
impl Clone for BlockTransaction
source§fn clone(&self) -> BlockTransaction
fn clone(&self) -> BlockTransaction
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 BlockTransaction
impl Debug for BlockTransaction
source§impl Default for BlockTransaction
impl Default for BlockTransaction
source§fn default() -> BlockTransaction
fn default() -> BlockTransaction
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BlockTransaction
impl<'de> Deserialize<'de> for BlockTransaction
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<BlockTransaction> for BlockTransaction
impl PartialEq<BlockTransaction> for BlockTransaction
source§fn eq(&self, other: &BlockTransaction) -> bool
fn eq(&self, other: &BlockTransaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BlockTransaction
impl Serialize for BlockTransaction
impl Eq for BlockTransaction
impl StructuralEq for BlockTransaction
impl StructuralPartialEq for BlockTransaction
Auto Trait Implementations§
impl RefUnwindSafe for BlockTransaction
impl Send for BlockTransaction
impl Sync for BlockTransaction
impl Unpin for BlockTransaction
impl UnwindSafe for BlockTransaction
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