pub struct QuoteConfig {
pub slippage_bps: Option<u64>,
pub swap_mode: Option<SwapMode>,
pub dexes: Option<Vec<String>>,
pub exclude_dexes: Option<Vec<String>>,
pub only_direct_routes: bool,
pub as_legacy_transaction: Option<bool>,
pub platform_fee_bps: Option<u64>,
pub max_accounts: Option<u64>,
}
Fields§
§slippage_bps: Option<u64>
§swap_mode: Option<SwapMode>
§dexes: Option<Vec<String>>
§exclude_dexes: Option<Vec<String>>
§only_direct_routes: bool
§as_legacy_transaction: Option<bool>
§platform_fee_bps: Option<u64>
§max_accounts: Option<u64>
Trait Implementations§
Source§impl Default for QuoteConfig
impl Default for QuoteConfig
Source§fn default() -> QuoteConfig
fn default() -> QuoteConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QuoteConfig
impl RefUnwindSafe for QuoteConfig
impl Send for QuoteConfig
impl Sync for QuoteConfig
impl Unpin for QuoteConfig
impl UnwindSafe for QuoteConfig
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more