[][src]Struct exonum::blockchain::TxLocation

pub struct TxLocation { /* fields omitted */ }

Transaction location in a block. Defines the block where the transaction was included and the position of this transaction in the block.

Methods

impl TxLocation[src]

pub fn new(block_height: Height, position_in_block: u32) -> Self[src]

Creates a new transaction location.

pub fn block_height(&self) -> Height[src]

Height of the block where the transaction was included.

pub fn position_in_block(&self) -> u32[src]

Zero-based position of this transaction in the block.

Trait Implementations

impl BinaryValue for TxLocation[src]

impl Clone for TxLocation[src]

impl Copy for TxLocation[src]

impl Debug for TxLocation[src]

impl<'de> Deserialize<'de> for TxLocation[src]

impl ObjectHash for TxLocation[src]

impl PartialEq<TxLocation> for TxLocation[src]

impl ProtobufConvert for TxLocation[src]

type ProtoStruct = TxLocation

Type generated from the Protobuf definition.

impl Serialize for TxLocation[src]

impl StructuralPartialEq for TxLocation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,