Struct common_types::views::TransactionView[][src]

pub struct TransactionView<'a> { /* fields omitted */ }

View onto transaction rlp.

Implementations

impl<'a> TransactionView<'a>[src]

pub fn new(rlp: ViewRlp<'a>) -> TransactionView<'a>[src]

Creates new view onto valid transaction rlp. Use the view! macro to create this view in order to capture debugging info.

Example

#[macro_use]
extern crate common_types as types;

use types::views::{TransactionView};

fn main() {
let bytes : &[u8] = &[];
let tx_view = view!(TransactionView, bytes);
}

pub fn rlp(&self) -> &ViewRlp<'a>[src]

Return reference to underlaying rlp.

pub fn hash(&self) -> H256[src]

Returns transaction hash.

pub fn nonce(&self) -> U256[src]

Get the nonce field of the transaction.

pub fn gas_price(&self) -> U256[src]

Get the gas_price field of the transaction.

pub fn gas(&self) -> U256[src]

Get the gas field of the transaction.

pub fn value(&self) -> U256[src]

Get the value field of the transaction.

pub fn data(&self) -> Bytes[src]

Get the data field of the transaction.

pub fn v(&self) -> u8[src]

Get the v field of the transaction.

pub fn r(&self) -> U256[src]

Get the r field of the transaction.

pub fn s(&self) -> U256[src]

Get the s field of the transaction.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for TransactionView<'a>

impl<'a> Send for TransactionView<'a>

impl<'a> !Sync for TransactionView<'a>

impl<'a> Unpin for TransactionView<'a>

impl<'a> UnwindSafe for TransactionView<'a>

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> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,