pub type TxBuilder = TxBuilderState<SetPayload>;

Aliased Type§

struct TxBuilder {
    data: Vec<u8, Global>,
    tstruct: TransactionStruct,
    phantom: PhantomData<SetPayload>,
}

Fields§

§data: Vec<u8, Global>§tstruct: TransactionStruct§phantom: PhantomData<SetPayload>

Implementations§

source§

impl TxBuilder

source

pub fn new() -> Self

Create a new Tx builder

source§

impl<State> TxBuilderState<State>

source§

impl TxBuilderState<SetPayload>

source

pub fn set_payload<P: Payload>(self, payload: &P) -> TxBuilderState<SetTtl<P>>

Set the payload of this transaction

source

pub fn set_nopayload(self) -> TxBuilderState<SetTtl<NoExtra>>

Trait Implementations§

source§

impl<T> Clone for TxBuilderState<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for TxBuilder

source§

fn default() -> Self

Returns the “default value” for a type. Read more