pub enum BondingCurveExactTokens {
ExactInput {
amount: AssetAmount,
min_out: AssetAmount,
},
}Expand description
Bonding curve exact tokens
Variants§
ExactInput
Exact input
Fields
§
amount: AssetAmountInput amount Note: input amount means the input asset quantity
§
min_out: AssetAmountMin out Note: min out means the output asset quantity must be greater than or equal to the min out
Trait Implementations§
Source§impl Clone for BondingCurveExactTokens
impl Clone for BondingCurveExactTokens
Source§fn clone(&self) -> BondingCurveExactTokens
fn clone(&self) -> BondingCurveExactTokens
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BondingCurveExactTokens
impl Debug for BondingCurveExactTokens
Source§impl<'de> Deserialize<'de> for BondingCurveExactTokens
impl<'de> Deserialize<'de> for BondingCurveExactTokens
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
Source§impl PartialEq for BondingCurveExactTokens
impl PartialEq for BondingCurveExactTokens
Source§impl Serialize for BondingCurveExactTokens
impl Serialize for BondingCurveExactTokens
impl Eq for BondingCurveExactTokens
impl StructuralPartialEq for BondingCurveExactTokens
Auto Trait Implementations§
impl Freeze for BondingCurveExactTokens
impl RefUnwindSafe for BondingCurveExactTokens
impl Send for BondingCurveExactTokens
impl Sync for BondingCurveExactTokens
impl Unpin for BondingCurveExactTokens
impl UnwindSafe for BondingCurveExactTokens
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