pub struct ExternalMatchOptions {
pub do_gas_estimation: bool,
pub sponsor_gas: bool,
pub gas_refund_address: Option<String>,
pub receiver_address: Option<String>,
}๐Deprecated since 0.1.0: This endpoint will soon be removed, use
request_quote and assemble_quote insteadExpand description
The options for requesting an external match
Fieldsยง
ยงdo_gas_estimation: bool๐Deprecated since 0.1.0: This endpoint will soon be removed, use
request_quote and assemble_quote insteadWhether to perform gas estimation
sponsor_gas: bool๐Deprecated since 0.1.0: This endpoint will soon be removed, use
request_quote and assemble_quote insteadWhether or not to request gas sponsorship for the match
If granted, the auth server will sign the bundle to indicate that the
gas paid to settle the match should be refunded to the given address
(tx.origin if not specified). This is subject to a rate limit.
gas_refund_address: Option<String>๐Deprecated since 0.1.0: This endpoint will soon be removed, use
request_quote and assemble_quote insteadThe address to refund gas to if sponsor_gas is true
receiver_address: Option<String>๐Deprecated since 0.1.0: This endpoint will soon be removed, use
request_quote and assemble_quote insteadThe receiver address that the darkpool will send funds to
If not provided, the receiver address is the message sender
Implementationsยง
Sourceยงimpl ExternalMatchOptions
impl ExternalMatchOptions
Sourcepub fn with_gas_estimation(self, do_gas_estimation: bool) -> Self
pub fn with_gas_estimation(self, do_gas_estimation: bool) -> Self
Set the gas estimation flag
Sourcepub fn with_receiver_address(self, receiver_address: String) -> Self
pub fn with_receiver_address(self, receiver_address: String) -> Self
Set the receiver address
Sourcepub fn request_gas_sponsorship(self) -> Self
pub fn request_gas_sponsorship(self) -> Self
Request 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
Trait Implementationsยง
Sourceยงimpl Clone for ExternalMatchOptions
impl Clone for ExternalMatchOptions
Sourceยงfn clone(&self) -> ExternalMatchOptions
fn clone(&self) -> ExternalMatchOptions
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 ExternalMatchOptions
impl Default for ExternalMatchOptions
Sourceยงfn default() -> ExternalMatchOptions
fn default() -> ExternalMatchOptions
Returns the โdefault valueโ for a type. Read more
Auto Trait Implementationsยง
impl Freeze for ExternalMatchOptions
impl RefUnwindSafe for ExternalMatchOptions
impl Send for ExternalMatchOptions
impl Sync for ExternalMatchOptions
impl Unpin for ExternalMatchOptions
impl UnwindSafe for ExternalMatchOptions
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