pub struct SlippageBps(pub i64);
Expand description
The maximum acceptable slippage of the toToken
in basis points. If this parameter is set to 0, no slippage will be tolerated. If not provided, the default slippage tolerance is 100 bps (i.e., 1%).
JSON schema
{
"description": "The maximum acceptable slippage of the `toToken` in basis points. If this parameter is set to 0, no slippage will be tolerated. If not provided, the default slippage tolerance is 100 bps (i.e., 1%).",
"default": 100,
"examples": [
100
],
"type": "integer",
"maximum": 10000.0,
"minimum": 0.0
}
Tuple Fields§
§0: i64
Trait Implementations§
Source§impl Clone for SlippageBps
impl Clone for SlippageBps
Source§fn clone(&self) -> SlippageBps
fn clone(&self) -> SlippageBps
Returns a duplicate 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 SlippageBps
impl Debug for SlippageBps
Source§impl Deref for SlippageBps
impl Deref for SlippageBps
Source§impl<'de> Deserialize<'de> for SlippageBps
impl<'de> Deserialize<'de> for SlippageBps
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 Display for SlippageBps
impl Display for SlippageBps
Source§impl From<&SlippageBps> for SlippageBps
impl From<&SlippageBps> for SlippageBps
Source§fn from(value: &SlippageBps) -> Self
fn from(value: &SlippageBps) -> Self
Converts to this type from the input type.
Source§impl From<SlippageBps> for i64
impl From<SlippageBps> for i64
Source§fn from(value: SlippageBps) -> Self
fn from(value: SlippageBps) -> Self
Converts to this type from the input type.
Source§impl From<i64> for SlippageBps
impl From<i64> for SlippageBps
Source§impl FromStr for SlippageBps
impl FromStr for SlippageBps
Source§impl Serialize for SlippageBps
impl Serialize for SlippageBps
Source§impl TryFrom<&String> for SlippageBps
impl TryFrom<&String> for SlippageBps
Source§impl TryFrom<&str> for SlippageBps
impl TryFrom<&str> for SlippageBps
Auto Trait Implementations§
impl Freeze for SlippageBps
impl RefUnwindSafe for SlippageBps
impl Send for SlippageBps
impl Sync for SlippageBps
impl Unpin for SlippageBps
impl UnwindSafe for SlippageBps
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.