pub struct Message { /* private fields */ }Expand description
Represents a complete owned, structured FIX message composed of a header and body.
The header holds protocol and session metadata, while the body carries message-specific fields defined by the message type.
Implementations§
Source§impl Message
impl Message
Sourcepub fn builder(
begin_string: BeginString,
msg_type: MsgType,
) -> MessageBuilder<false>
pub fn builder( begin_string: BeginString, msg_type: MsgType, ) -> MessageBuilder<false>
Creates a new MessageBuilder initialized with the required
BeginString and MsgType header fields.
Example usage:
use trafix_codec::message::{
Message,
field::{
Field,
value::{begin_string::BeginString, msg_type::MsgType},
},
};
let builder = Message::builder(BeginString::FIX44, MsgType::Logon);Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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