[][src]Enum ethcontract::transaction::Transaction

pub enum Transaction {
    Request(TransactionRequest),
    Raw(Bytes),
}

Represents a prepared and optionally signed transaction that is ready for sending created by a TransactionBuilder.

Variants

A structured transaction request to be signed locally by the node.

Raw(Bytes)

A signed raw transaction request.

Methods

impl Transaction[src]

pub fn request(self) -> Option<TransactionRequest>[src]

Unwraps the transaction into a transaction request, returning None if the transaction is a raw transaction.

pub fn raw(self) -> Option<Bytes>[src]

Unwraps the transaction into its raw bytes, returning None if it is a transaction request.

Trait Implementations

impl Clone for Transaction[src]

impl Debug for Transaction[src]

impl PartialEq<Transaction> for Transaction[src]

impl StructuralPartialEq for Transaction[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> 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<T> Typeable for T where
    T: Any

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