Type Alias chain_impl_mockchain::transaction::TxBuilder
source · 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<State> TxBuilderState<State>
impl<State> TxBuilderState<State>
fn current_pos(&self) -> usize
source§impl TxBuilderState<SetPayload>
impl TxBuilderState<SetPayload>
sourcepub fn set_payload<P: Payload>(self, payload: &P) -> TxBuilderState<SetTtl<P>>
pub fn set_payload<P: Payload>(self, payload: &P) -> TxBuilderState<SetTtl<P>>
Set the payload of this transaction