pub struct TransferBuilder { /* private fields */ }Expand description
Builder for creating Transfer objects in a more idiomatic way
Implementations§
Source§impl TransferBuilder
impl TransferBuilder
Sourcepub fn originator(self, originator: Party) -> Self
pub fn originator(self, originator: Party) -> Self
Set the originator for this transfer
Sourcepub fn beneficiary(self, beneficiary: Party) -> Self
pub fn beneficiary(self, beneficiary: Party) -> Self
Set the beneficiary for this transfer
Sourcepub fn settlement_id(self, settlement_id: String) -> Self
pub fn settlement_id(self, settlement_id: String) -> Self
Set the settlement ID for this transfer
Sourcepub fn transaction_id(self, transaction_id: String) -> Self
pub fn transaction_id(self, transaction_id: String) -> Self
Set the transaction ID for this transfer
Sourcepub fn add_metadata(self, key: String, value: Value) -> Self
pub fn add_metadata(self, key: String, value: Value) -> Self
Add a metadata field
Sourcepub fn metadata(self, metadata: HashMap<String, Value>) -> Self
pub fn metadata(self, metadata: HashMap<String, Value>) -> Self
Set all metadata for this transfer
Trait Implementations§
Source§impl Default for TransferBuilder
impl Default for TransferBuilder
Source§fn default() -> TransferBuilder
fn default() -> TransferBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransferBuilder
impl RefUnwindSafe for TransferBuilder
impl Send for TransferBuilder
impl Sync for TransferBuilder
impl Unpin for TransferBuilder
impl UnwindSafe for TransferBuilder
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