pub struct MarketDataRequestReject {
pub md_req_id: String,
pub md_req_rej_reason: MdReqRejReason,
pub text: Option<String>,
}Expand description
Market Data Request Reject message structure
Fields§
§md_req_id: StringID of the original request
md_req_rej_reason: MdReqRejReasonReason for rejection
text: Option<String>Free format text string
Implementations§
Source§impl MarketDataRequestReject
impl MarketDataRequestReject
Sourcepub fn new(md_req_id: String, reason: MdReqRejReason) -> Self
pub fn new(md_req_id: String, reason: MdReqRejReason) -> Self
Create a new reject message
Sourcepub fn with_text(
md_req_id: String,
reason: MdReqRejReason,
text: String,
) -> Self
pub fn with_text( md_req_id: String, reason: MdReqRejReason, text: String, ) -> Self
Create a reject message with text
Sourcepub fn to_fix_message(
&self,
sender_comp_id: String,
target_comp_id: String,
msg_seq_num: u32,
) -> DeribitFixResult<String>
pub fn to_fix_message( &self, sender_comp_id: String, target_comp_id: String, msg_seq_num: u32, ) -> DeribitFixResult<String>
Convert to FIX message
Trait Implementations§
Source§impl Clone for MarketDataRequestReject
impl Clone for MarketDataRequestReject
Source§fn clone(&self) -> MarketDataRequestReject
fn clone(&self) -> MarketDataRequestReject
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 Debug for MarketDataRequestReject
impl Debug for MarketDataRequestReject
Source§impl<'de> Deserialize<'de> for MarketDataRequestReject
impl<'de> Deserialize<'de> for MarketDataRequestReject
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
Auto Trait Implementations§
impl Freeze for MarketDataRequestReject
impl RefUnwindSafe for MarketDataRequestReject
impl Send for MarketDataRequestReject
impl Sync for MarketDataRequestReject
impl Unpin for MarketDataRequestReject
impl UnwindSafe for MarketDataRequestReject
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