Struct FirmQuoteOkResponse

Source
pub struct FirmQuoteOkResponse {
Show 20 fields pub tx: TransactionInfo, pub tx_origin: Option<String>, pub msg_sender: String, pub method_abi: Abi, pub order: HashMap<String, String>, pub r: String, pub vs: String, pub gasless_approval_tx: Option<GaslessApprovalTxInfo>, pub allowance_target: Option<String>, pub last_valid_block_timestamp: String, pub send_qty: String, pub receive_qty: String, pub min_fill_qty: String, pub platform_fee: Option<PlatformFee>, pub dbbo_time: u64, pub dbbo_data: Value, pub send_notional: Option<f64>, pub receive_notional: Option<f64>, pub fill_notional: Option<f64>, pub request_id: SignatoryRequestId,
}

Fields§

§tx: TransactionInfo

The transaction. The client is responsible for populating the transaction’s nonce and gas parameters.

§tx_origin: Option<String>

Address of the EOA allowed to send the transaction. If null, any EOA may send the transaction.

§msg_sender: String

Address of the account allowed to call the DFlowSwap contract to fill the order

§method_abi: Abi

The ABI of the DFlowSwap contract method to use to fill the order

§order: HashMap<String, String>

order to use when calling the DFlowSwap contract fill method specified by methodAbi

§r: String

r value to use when calling the DFlowSwap contract fill method specified by methodAbi

§vs: String

vs value to use when calling the DFlowSwap contract fill method specified by methodAbi

§gasless_approval_tx: Option<GaslessApprovalTxInfo>

Gasless approval transaction fields. Not specified if the retail trader is sending native ETH.

§allowance_target: Option<String>

The contract address for which the retail trader needs to have an allowance for the send token for the transaction to be processed. If null, then the transaction does not require an allowance from the retail trader.

§last_valid_block_timestamp: String

The last block timestamp at which the transaction can be processed.

§send_qty: String

Send quantity specified as a scaled integer

§receive_qty: String

Receive quantity specified as a scaled integer

§min_fill_qty: String

Minimum allowed fill quantity before platform fee. Specified as a scaled integer.

§platform_fee: Option<PlatformFee>

Platform fee info. Only included if a platform fee was applied to the transaction.

§dbbo_time: u64

Time at which the DBBO was calculated

§dbbo_data: Value

(Unstable) Response body returned by the DBBO query that was used to determine the minFillQty

§send_notional: Option<f64>

Notional value in USD of the send quantity

§receive_notional: Option<f64>

Notional value in USD of the receive quantity

§fill_notional: Option<f64>

Notional value in USD of the fill quantity and platform fee

§request_id: SignatoryRequestId

(Unstable) Signatory server request identifier

Trait Implementations§

Source§

impl Clone for FirmQuoteOkResponse

Source§

fn clone(&self) -> FirmQuoteOkResponse

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FirmQuoteOkResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for FirmQuoteOkResponse

Source§

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 FirmQuoteOkResponse

Source§

fn eq(&self, other: &FirmQuoteOkResponse) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for FirmQuoteOkResponse

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for FirmQuoteOkResponse

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,