pub struct StreamGetTradeStatusData {
pub custom_comment: String,
pub message: Option<String>,
pub order: i32,
pub price: Decimal,
pub request_status: TransactionStatus,
}Fields§
§custom_comment: StringThe value the customer may provide in order to retrieve it later
message: Option<String>Message, can be null
order: i32Unique order number
price: DecimalPrice in base currency
request_status: TransactionStatusRequest status code
Implementations§
Source§impl StreamGetTradeStatusData
impl StreamGetTradeStatusData
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_price(self, value: impl Into<Decimal>) -> Self
pub fn with_price(self, value: impl Into<Decimal>) -> Self
Sets the price 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 StreamGetTradeStatusData
impl Clone for StreamGetTradeStatusData
Source§fn clone(&self) -> StreamGetTradeStatusData
fn clone(&self) -> StreamGetTradeStatusData
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 Debug for StreamGetTradeStatusData
impl Debug for StreamGetTradeStatusData
Source§impl Default for StreamGetTradeStatusData
impl Default for StreamGetTradeStatusData
Source§fn default() -> StreamGetTradeStatusData
fn default() -> StreamGetTradeStatusData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreamGetTradeStatusData
impl<'de> Deserialize<'de> for StreamGetTradeStatusData
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 StreamGetTradeStatusData
impl PartialEq for StreamGetTradeStatusData
Source§impl Serialize for StreamGetTradeStatusData
impl Serialize for StreamGetTradeStatusData
impl StructuralPartialEq for StreamGetTradeStatusData
Auto Trait Implementations§
impl Freeze for StreamGetTradeStatusData
impl RefUnwindSafe for StreamGetTradeStatusData
impl Send for StreamGetTradeStatusData
impl Sync for StreamGetTradeStatusData
impl Unpin for StreamGetTradeStatusData
impl UnwindSafe for StreamGetTradeStatusData
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)