pub struct Reject {
pub ref_seq_num: u32,
pub ref_tag_id: Option<u32>,
pub ref_msg_type: Option<String>,
pub session_reject_reason: Option<u32>,
pub text: Option<String>,
}Expand description
Reject message (MsgType = 3)
The Reject message is sent when a received message cannot be processed due to validation errors, formatting issues, or other problems. It provides detailed information about why the message was rejected.
Fields§
§ref_seq_num: u32RefSeqNum (45) - Sequence number of the rejected message
ref_tag_id: Option<u32>RefTagID (371) - Tag number of the field that caused rejection Optional field present when rejection is due to a specific field
ref_msg_type: Option<String>RefMsgType (372) - Message type of the rejected message Optional field to identify which message type was rejected
session_reject_reason: Option<u32>SessionRejectReason (373) - Reason code for rejection Standardized codes defined in FIX specification
text: Option<String>Text (58) - Human-readable description of rejection reason Optional free-form text providing additional details
Implementations§
Source§impl Reject
impl Reject
Sourcepub fn new_detailed(
ref_seq_num: u32,
ref_tag_id: Option<u32>,
ref_msg_type: Option<String>,
session_reject_reason: Option<SessionRejectReason>,
text: Option<String>,
) -> Self
pub fn new_detailed( ref_seq_num: u32, ref_tag_id: Option<u32>, ref_msg_type: Option<String>, session_reject_reason: Option<SessionRejectReason>, text: Option<String>, ) -> Self
Create a Reject message with detailed rejection information
Sourcepub fn new_invalid_tag(ref_seq_num: u32, tag_id: u32) -> Self
pub fn new_invalid_tag(ref_seq_num: u32, tag_id: u32) -> Self
Create a Reject for invalid tag number
Sourcepub fn new_missing_tag(ref_seq_num: u32, tag_id: u32, msg_type: String) -> Self
pub fn new_missing_tag(ref_seq_num: u32, tag_id: u32, msg_type: String) -> Self
Create a Reject for missing required tag
Sourcepub fn new_incorrect_format(ref_seq_num: u32, tag_id: u32, text: String) -> Self
pub fn new_incorrect_format(ref_seq_num: u32, tag_id: u32, text: String) -> Self
Create a Reject for incorrect data format
Sourcepub fn to_fix_message(
&self,
sender_comp_id: String,
target_comp_id: String,
msg_seq_num: u32,
) -> Result<FixMessage>
pub fn to_fix_message( &self, sender_comp_id: String, target_comp_id: String, msg_seq_num: u32, ) -> Result<FixMessage>
Build a FIX message for this Reject
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reject
impl<'de> Deserialize<'de> for Reject
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>,
impl Eq for Reject
impl StructuralPartialEq for Reject
Auto Trait Implementations§
impl Freeze for Reject
impl RefUnwindSafe for Reject
impl Send for Reject
impl Sync for Reject
impl Unpin for Reject
impl UnwindSafe for Reject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.