Struct ckb_types::core::TransactionBuilder [−][src]
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]
T: IntoIterator<Item = CellDep>,
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]
T: IntoIterator<Item = Byte32>,
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]
T: IntoIterator<Item = CellInput>,
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]
T: IntoIterator<Item = CellOutput>,
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]
T: IntoIterator<Item = Bytes>,
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]
T: IntoIterator<Item = Bytes>,
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]
fn clone(&self) -> TransactionBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TransactionBuilder
[src]
impl Default for TransactionBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for TransactionBuilder
impl Send for TransactionBuilder
impl Sync for TransactionBuilder
impl Unpin for TransactionBuilder
impl UnwindSafe for TransactionBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,