pub enum SwapKind {
GivenIn = 0,
GivenOut = 1,
}
Expand description
Kind of swap operation
Variants§
GivenIn = 0
Given amount in, calculate amount out
GivenOut = 1
Given amount out, calculate amount in
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SwapKind
impl<'de> Deserialize<'de> for SwapKind
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
impl StructuralPartialEq for SwapKind
Auto Trait Implementations§
impl Freeze for SwapKind
impl RefUnwindSafe for SwapKind
impl Send for SwapKind
impl Sync for SwapKind
impl Unpin for SwapKind
impl UnwindSafe for SwapKind
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