Struct coreledger_backend::RunWarpRequest
pub struct RunWarpRequest {
pub supplies: Vec<SupplyId>,
pub input_amount: u256,
pub target_address: Option<Principal>,
}
Fields§
§supplies: Vec<SupplyId>
Array of supply ID’s to be executed as a trade sequence. They must be in correct order similar to domino bricks. The output of the preceding one is the next input, and so forth.
input_amount: u256
Amount sent into the first supply.
target_address: Option<Principal>
Destination address for the final amount. Needed to make invoices possible.
Trait Implementations§
§impl CandidType for RunWarpRequest
impl CandidType for RunWarpRequest
§impl<'de> Deserialize<'de> for RunWarpRequest
impl<'de> Deserialize<'de> for RunWarpRequest
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for RunWarpRequest
impl Serialize for RunWarpRequest
Auto Trait Implementations§
impl Freeze for RunWarpRequest
impl RefUnwindSafe for RunWarpRequest
impl Send for RunWarpRequest
impl Sync for RunWarpRequest
impl Unpin for RunWarpRequest
impl UnwindSafe for RunWarpRequest
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