Struct snarkos_toolkit::dpc::transaction_kernel_builder::TransactionKernelBuilder [−][src]
pub struct TransactionKernelBuilder { /* fields omitted */ }Implementations
impl TransactionKernelBuilder[src]
impl TransactionKernelBuilder[src]pub fn new() -> Self[src]
pub fn add_input(
self,
private_key: PrivateKey,
record: Record
) -> Result<Self, DPCError>[src]
pub fn add_input(
self,
private_key: PrivateKey,
record: Record
) -> Result<Self, DPCError>[src]Returns a new transaction builder with the added transaction input.
Otherwise, returns a DPCError.
pub fn add_output(
self,
recipient: Address,
amount: u64
) -> Result<Self, DPCError>[src]
pub fn add_output(
self,
recipient: Address,
amount: u64
) -> Result<Self, DPCError>[src]Returns a new transaction builder with the added transaction output.
Otherwise, returns a DPCError.
pub fn network_id(self, network_id: u8) -> Self[src]
pub fn network_id(self, network_id: u8) -> Self[src]Returns a new transaction builder with the updated network id.
Trait Implementations
impl Clone for TransactionKernelBuilder[src]
impl Clone for TransactionKernelBuilder[src]fn clone(&self) -> TransactionKernelBuilder[src]
fn clone(&self) -> TransactionKernelBuilder[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for TransactionKernelBuilder[src]
impl Debug for TransactionKernelBuilder[src]impl Default for TransactionKernelBuilder[src]
impl Default for TransactionKernelBuilder[src]fn default() -> TransactionKernelBuilder[src]
fn default() -> TransactionKernelBuilder[src]Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for TransactionKernelBuilder
impl Send for TransactionKernelBuilder
impl Sync for TransactionKernelBuilder
impl Unpin for TransactionKernelBuilder
impl UnwindSafe for TransactionKernelBuilder
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,