pub struct CreateTransactionSplitBodyBuilder { /* private fields */ }
Expand description
Builder for CreateTransactionSplitBody
.
Implementations§
source§impl CreateTransactionSplitBodyBuilder
impl CreateTransactionSplitBodyBuilder
sourcepub fn split_type(&mut self, value: SplitType) -> &mut Self
pub fn split_type(&mut self, value: SplitType) -> &mut Self
The type of transaction split you want to create
sourcepub fn subaccounts(&mut self, value: Vec<SubaccountBody>) -> &mut Self
pub fn subaccounts(&mut self, value: Vec<SubaccountBody>) -> &mut Self
A list of object containing subaccount code and number of shares: [{subaccount: ‘ACT_xxxxxxxxxx’, share: xxx},{...}]
sourcepub fn bearer_type(&mut self, value: BearerType) -> &mut Self
pub fn bearer_type(&mut self, value: BearerType) -> &mut Self
Any of subaccount
sourcepub fn bearer_subaccount(&mut self, value: String) -> &mut Self
pub fn bearer_subaccount(&mut self, value: String) -> &mut Self
Subaccount code
sourcepub fn build(
&self
) -> Result<CreateTransactionSplitBody, CreateTransactionSplitBodyBuilderError>
pub fn build( &self ) -> Result<CreateTransactionSplitBody, CreateTransactionSplitBodyBuilderError>
Trait Implementations§
source§impl Clone for CreateTransactionSplitBodyBuilder
impl Clone for CreateTransactionSplitBodyBuilder
source§fn clone(&self) -> CreateTransactionSplitBodyBuilder
fn clone(&self) -> CreateTransactionSplitBodyBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for CreateTransactionSplitBodyBuilder
impl Send for CreateTransactionSplitBodyBuilder
impl Sync for CreateTransactionSplitBodyBuilder
impl Unpin for CreateTransactionSplitBodyBuilder
impl UnwindSafe for CreateTransactionSplitBodyBuilder
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