[][src]Struct transact::protocol::receipt::TransactionReceiptBuilder

pub struct TransactionReceiptBuilder {
    pub state_changes: Vec<StateChange>,
    pub events: Vec<Event>,
    pub data: Vec<Vec<u8>>,
    pub transaction_id: Option<String>,
}

Fields

state_changes: Vec<StateChange>events: Vec<Event>data: Vec<Vec<u8>>transaction_id: Option<String>

Methods

impl TransactionReceiptBuilder[src]

pub fn new() -> Self[src]

pub fn with_state_changes(
    self,
    state_changes: Vec<StateChange>
) -> TransactionReceiptBuilder
[src]

pub fn with_events(self, events: Vec<Event>) -> TransactionReceiptBuilder[src]

pub fn with_data(self, data: Vec<Vec<u8>>) -> TransactionReceiptBuilder[src]

pub fn with_transaction_id(
    self,
    transaction_id: String
) -> TransactionReceiptBuilder
[src]

pub fn build(self) -> Result<TransactionReceipt, TransactionReceiptBuilderError>[src]

Trait Implementations

impl Default for TransactionReceiptBuilder[src]

impl Clone for TransactionReceiptBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Send + Sync + Clone

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone

impl<T> Same<T> for T

type Output = T

Should always be Self