pub struct TradeTransactionStatusResponse {
pub ask: Decimal,
pub bid: Decimal,
pub custom_comment: String,
pub message: Option<String>,
pub order: i32,
pub request_status: TransactionStatus,
}Expand description
Structure representing the response
Fields§
§ask: DecimalPrice in base currency
bid: DecimalPrice in base currency
custom_comment: StringThe value the customer may provide in order to retrieve it later
message: Option<String>Can be null
order: i32Unique order number
request_status: TransactionStatusRequest status code
Implementations§
Source§impl TradeTransactionStatusResponse
impl TradeTransactionStatusResponse
Sourcepub fn with_custom_comment(self, value: impl Into<String>) -> Self
pub fn with_custom_comment(self, value: impl Into<String>) -> Self
Sets the custom_comment field of this struct.
Sourcepub fn with_message(self, value: impl Into<String>) -> Self
pub fn with_message(self, value: impl Into<String>) -> Self
Sets the message field of this struct.
Sourcepub fn with_order(self, value: impl Into<i32>) -> Self
pub fn with_order(self, value: impl Into<i32>) -> Self
Sets the order field of this struct.
Sourcepub fn with_request_status(self, value: impl Into<TransactionStatus>) -> Self
pub fn with_request_status(self, value: impl Into<TransactionStatus>) -> Self
Sets the request_status field of this struct.
Trait Implementations§
Source§impl Clone for TradeTransactionStatusResponse
impl Clone for TradeTransactionStatusResponse
Source§fn clone(&self) -> TradeTransactionStatusResponse
fn clone(&self) -> TradeTransactionStatusResponse
Returns a copy 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 TradeTransactionStatusResponse
impl Default for TradeTransactionStatusResponse
Source§fn default() -> TradeTransactionStatusResponse
fn default() -> TradeTransactionStatusResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TradeTransactionStatusResponse
impl<'de> Deserialize<'de> for TradeTransactionStatusResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 TradeTransactionStatusResponse
impl PartialEq for TradeTransactionStatusResponse
Source§fn eq(&self, other: &TradeTransactionStatusResponse) -> bool
fn eq(&self, other: &TradeTransactionStatusResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TradeTransactionStatusResponse
Auto Trait Implementations§
impl Freeze for TradeTransactionStatusResponse
impl RefUnwindSafe for TradeTransactionStatusResponse
impl Send for TradeTransactionStatusResponse
impl Sync for TradeTransactionStatusResponse
impl Unpin for TradeTransactionStatusResponse
impl UnwindSafe for TradeTransactionStatusResponse
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)