Struct ckb_types::core::TransactionBuilder[][src]

pub struct TransactionBuilder { /* fields omitted */ }

An advanced builder for TransactionView.

Base on packed::TransactionBuilder but added lots of syntactic sugar.

Implementations

impl TransactionBuilder[src]

pub fn version(self, v: Uint32) -> Self[src]

Sets version.

pub fn cell_dep(self, v: CellDep) -> Self[src]

Pushes an item into cell_deps.

pub fn cell_deps<T>(self, v: T) -> Self where
    T: IntoIterator<Item = CellDep>, 
[src]

Extends cell_deps with the contents of an iterator.

pub fn set_cell_deps(self, v: Vec<CellDep>) -> Self[src]

Sets cell_deps.

pub fn header_dep(self, v: Byte32) -> Self[src]

Pushes an item into header_deps.

pub fn header_deps<T>(self, v: T) -> Self where
    T: IntoIterator<Item = Byte32>, 
[src]

Extends header_deps with the contents of an iterator.

pub fn set_header_deps(self, v: Vec<Byte32>) -> Self[src]

Sets header_deps.

pub fn input(self, v: CellInput) -> Self[src]

Pushes an item into inputs.

pub fn inputs<T>(self, v: T) -> Self where
    T: IntoIterator<Item = CellInput>, 
[src]

Extends inputs with the contents of an iterator.

pub fn set_inputs(self, v: Vec<CellInput>) -> Self[src]

Sets inputs.

pub fn output(self, v: CellOutput) -> Self[src]

Pushes an item into outputs.

pub fn outputs<T>(self, v: T) -> Self where
    T: IntoIterator<Item = CellOutput>, 
[src]

Extends outputs with the contents of an iterator.

pub fn set_outputs(self, v: Vec<CellOutput>) -> Self[src]

Sets outputs.

pub fn witness(self, v: Bytes) -> Self[src]

Pushes an item into witnesses.

pub fn witnesses<T>(self, v: T) -> Self where
    T: IntoIterator<Item = Bytes>, 
[src]

Extends witnesses with the contents of an iterator.

pub fn set_witnesses(self, v: Vec<Bytes>) -> Self[src]

Sets witnesses.

pub fn output_data(self, v: Bytes) -> Self[src]

Pushes an item into outputs_data.

pub fn outputs_data<T>(self, v: T) -> Self where
    T: IntoIterator<Item = Bytes>, 
[src]

Extends outputs_data with the contents of an iterator.

pub fn set_outputs_data(self, v: Vec<Bytes>) -> Self[src]

Sets outputs_data.

pub fn build(self) -> TransactionView[src]

Converts into TransactionView.

Trait Implementations

impl Clone for TransactionBuilder[src]

impl Debug for TransactionBuilder[src]

impl Default for TransactionBuilder[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<V, T> VZip<V> for T where
    V: MultiLane<T>,