Struct FirmQuoteOkResponse

Source
pub struct FirmQuoteOkResponse {
Show 17 fields pub tx: String, pub tx_required_lamports: u64, pub solana_transaction_fee: u64, pub token_account_rent_deposit: u64, pub last_valid_block_height: u64, pub last_allowed_block_height: u64, pub block_height_query_commitment: 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: String

The Base64-encoded transaction. The client must not override the blockhash included in this transaction.

§tx_required_lamports: u64

Minimum lamports balance required in the retail trader’s wallet for the transaction to be processed.

§solana_transaction_fee: u64

Solana transaction fee paid by the retail trader.

§token_account_rent_deposit: u64

Refundable token account deposit paid by the retail trader to create an associated token account for the token that the retail trader is receiving. This is required by Solana and is returned to the retail trader if the retail trader closes the token account.

§last_valid_block_height: u64

The last valid block height to use when confirming the transaction.

§last_allowed_block_height: u64

The last block height at which the transaction can be sent via sendTransaction.

§block_height_query_commitment: String

The commitment level that the signatory server will use when querying the block height to determine whether the lastAllowedBlockHeight has passed. Clients should use this commitment level when querying and comparing the current block height to the lastAllowedBlockHeight.

§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 before 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>,