pub struct RequestQuoteOptions {
pub disable_gas_sponsorship: bool,
pub gas_refund_address: Option<String>,
pub refund_native_eth: bool,
}Expand description
The options for requesting a quote
Fields§
§disable_gas_sponsorship: boolWhether to disable gas sponsorship
gas_refund_address: Option<String>The address to refund gas to if sponsor_gas is true
refund_native_eth: boolWhether to refund gas in terms of native ETH, as opposed to in-kind
Implementations§
Source§impl RequestQuoteOptions
impl RequestQuoteOptions
Sourcepub fn disable_gas_sponsorship(self) -> Self
pub fn disable_gas_sponsorship(self) -> Self
Disable gas sponsorship
Sourcepub fn with_gas_refund_address(self, gas_refund_address: String) -> Self
pub fn with_gas_refund_address(self, gas_refund_address: String) -> Self
Set the gas refund address
Sourcepub fn with_refund_native_eth(self) -> Self
pub fn with_refund_native_eth(self) -> Self
Set whether to refund gas in terms of native ETH
Trait Implementations§
Source§impl Clone for RequestQuoteOptions
impl Clone for RequestQuoteOptions
Source§fn clone(&self) -> RequestQuoteOptions
fn clone(&self) -> RequestQuoteOptions
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 Default for RequestQuoteOptions
impl Default for RequestQuoteOptions
Source§fn default() -> RequestQuoteOptions
fn default() -> RequestQuoteOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RequestQuoteOptions
impl RefUnwindSafe for RequestQuoteOptions
impl Send for RequestQuoteOptions
impl Sync for RequestQuoteOptions
impl Unpin for RequestQuoteOptions
impl UnwindSafe for RequestQuoteOptions
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> 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