pub enum SwapMode {
ExactIn,
ExactOut,
}Expand description
Whether the swap fixes the input amount (ExactIn) or the output amount (ExactOut).
Spelled ExactIn/ExactOut on the wire — the same rendering as Self::as_str, the
sqlite column and the stream’s swapMode.
Variants§
Implementations§
Trait Implementations§
impl Copy for SwapMode
Source§impl<'de> Deserialize<'de> for SwapMode
impl<'de> Deserialize<'de> for SwapMode
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 Eq for SwapMode
impl StructuralPartialEq for SwapMode
Auto Trait Implementations§
impl Freeze for SwapMode
impl RefUnwindSafe for SwapMode
impl Send for SwapMode
impl Sync for SwapMode
impl Unpin for SwapMode
impl UnsafeUnpin for SwapMode
impl UnwindSafe for SwapMode
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