#[non_exhaustive]pub struct RithmicRequestError {
pub rp_code: Vec<String>,
pub code: Option<String>,
pub message: Option<String>,
}Expand description
Structured server-side rejection preserving both the Rithmic rp_code
numeric code and the human-readable message.
Rithmic returns request-level errors as a tuple rp_code = [code, message];
this struct keeps both pieces accessible so callers can branch on the
numeric code (e.g. "1039" for “FCM Id field is not received”) without
parsing the string. The raw payload is preserved on Self::rp_code so
consumers see exactly what the wire carried.
A populated RithmicRequestError is a protocol-level outcome — not a
transport/connection failure. Receiving one must NOT trigger reconnection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rp_code: Vec<String>Raw rp_code payload exactly as received from Rithmic.
code: Option<String>First rp_code element when present.
message: Option<String>Second rp_code element when present.
None when the server emitted a single-element rp_code (e.g. ["5"]).
Symmetric with Self::code.
Trait Implementations§
Source§impl Clone for RithmicRequestError
impl Clone for RithmicRequestError
Source§fn clone(&self) -> RithmicRequestError
fn clone(&self) -> RithmicRequestError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RithmicRequestError
impl Debug for RithmicRequestError
Source§impl Display for RithmicRequestError
impl Display for RithmicRequestError
Source§impl Error for RithmicRequestError
impl Error for RithmicRequestError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()