pub struct OperationBuilder;
Expand description
Build an Operation
.
Implementations§
Source§impl OperationBuilder
impl OperationBuilder
Sourcepub fn inflation() -> InflationOperationBuilder
pub fn inflation() -> InflationOperationBuilder
Build an InflationOperation
.
Sourcepub fn create_account(
destination: PublicKey,
balance: Amount,
) -> CreateAccountOperationBuilder
pub fn create_account( destination: PublicKey, balance: Amount, ) -> CreateAccountOperationBuilder
Build a CreateAccountOperation
with
destination
address and starting balance
.
Sourcepub fn payment(
destination: PublicKey,
asset: Asset,
amount: Amount,
) -> PaymentOperationBuilder
pub fn payment( destination: PublicKey, asset: Asset, amount: Amount, ) -> PaymentOperationBuilder
Build a PaymentOperation
sending amount
units of the asset
to the destination
account.
Sourcepub fn path_payment(
destination: PublicKey,
send_asset: Asset,
send_max: Amount,
dest_asset: Asset,
dest_amount: Amount,
) -> PathPaymentOperationBuilder
pub fn path_payment( destination: PublicKey, send_asset: Asset, send_max: Amount, dest_asset: Asset, dest_amount: Amount, ) -> PathPaymentOperationBuilder
Build a PathPaymentOperation
.
Sourcepub fn manage_offer(
selling: Asset,
buying: Asset,
amount: Amount,
price: Price,
) -> ManageOfferOperationBuilder
pub fn manage_offer( selling: Asset, buying: Asset, amount: Amount, price: Price, ) -> ManageOfferOperationBuilder
Build a ManageOfferOperation
.
Sourcepub fn create_passive_offer(
selling: Asset,
buying: Asset,
amount: Amount,
price: Price,
) -> CreatePassiveOfferOperationBuilder
pub fn create_passive_offer( selling: Asset, buying: Asset, amount: Amount, price: Price, ) -> CreatePassiveOfferOperationBuilder
Build a CreatePassiveOfferOperation
.
Sourcepub fn set_data(name: String, value: Vec<u8>) -> ManageDataOperationBuilder
pub fn set_data(name: String, value: Vec<u8>) -> ManageDataOperationBuilder
Build a ManageDataOperation
setting the key name
to value
.
Sourcepub fn delete_data(name: String) -> ManageDataOperationBuilder
pub fn delete_data(name: String) -> ManageDataOperationBuilder
Build a ManageDataOperation
removing key name
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OperationBuilder
impl RefUnwindSafe for OperationBuilder
impl Send for OperationBuilder
impl Sync for OperationBuilder
impl Unpin for OperationBuilder
impl UnwindSafe for OperationBuilder
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