pub struct ContractBuilder { /* private fields */ }
Expand description
A builder for Contract
A Contract
in M10’s system is an agreement amoung multiple parties to complete a series of transactions.
Each contract contains series of endorsements from each of the parties. Contracts are designed
to be executed across ledgers, for scenarios like FX swaps or other multi-currency transactions.
Implementations§
Trait Implementations§
Source§impl Clone for ContractBuilder
impl Clone for ContractBuilder
Source§fn clone(&self) -> ContractBuilder
fn clone(&self) -> ContractBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContractBuilder
impl Debug for ContractBuilder
Source§impl Default for ContractBuilder
impl Default for ContractBuilder
Source§fn default() -> ContractBuilder
fn default() -> ContractBuilder
Returns the “default value” for a type. Read more
Source§impl From<CreateLedgerTransfers> for ContractBuilder
impl From<CreateLedgerTransfers> for ContractBuilder
Source§fn from(transfer_request: CreateLedgerTransfers) -> Self
fn from(transfer_request: CreateLedgerTransfers) -> Self
Converts to this type from the input type.
Source§impl From<Vec<CreateLedgerTransfer>> for ContractBuilder
impl From<Vec<CreateLedgerTransfer>> for ContractBuilder
Source§fn from(transfers: Vec<CreateLedgerTransfer>) -> Self
fn from(transfers: Vec<CreateLedgerTransfer>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContractBuilder
impl RefUnwindSafe for ContractBuilder
impl Send for ContractBuilder
impl Sync for ContractBuilder
impl Unpin for ContractBuilder
impl UnwindSafe for ContractBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request