pub enum SwapAmountMsg {
Points {
long: f64,
short: f64,
},
Currency {
long: f64,
short: f64,
currency: String,
},
}Expand description
Wire-safe nightly swap magnitude, where a negative value charges and a positive value credits.
Variants§
Points
Price points per lot per night, in the instrument’s native currency.
Currency
Amount per lot per night, in the run’s account currency.
Trait Implementations§
Source§impl Clone for SwapAmountMsg
impl Clone for SwapAmountMsg
Source§impl Debug for SwapAmountMsg
impl Debug for SwapAmountMsg
Source§impl<'de> Deserialize<'de> for SwapAmountMsg
impl<'de> Deserialize<'de> for SwapAmountMsg
Source§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
Auto Trait Implementations§
impl Freeze for SwapAmountMsg
impl RefUnwindSafe for SwapAmountMsg
impl Send for SwapAmountMsg
impl Sync for SwapAmountMsg
impl Unpin for SwapAmountMsg
impl UnsafeUnpin for SwapAmountMsg
impl UnwindSafe for SwapAmountMsg
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