pub struct MessageBuilder { /* private fields */ }Expand description
Builder for constructing FIX messages
Implementations§
Source§impl MessageBuilder
impl MessageBuilder
Sourcepub fn sender_comp_id(self, sender_comp_id: String) -> Self
pub fn sender_comp_id(self, sender_comp_id: String) -> Self
Set sender company ID
Sourcepub fn target_comp_id(self, target_comp_id: String) -> Self
pub fn target_comp_id(self, target_comp_id: String) -> Self
Set target company ID
Sourcepub fn msg_seq_num(self, seq_num: u32) -> Self
pub fn msg_seq_num(self, seq_num: u32) -> Self
Set message sequence number
Sourcepub fn sending_time(self, time: DateTime<Utc>) -> Self
pub fn sending_time(self, time: DateTime<Utc>) -> Self
Set sending time
Sourcepub fn build(self) -> Result<FixMessage>
pub fn build(self) -> Result<FixMessage>
Build the message
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MessageBuilder
impl RefUnwindSafe for MessageBuilder
impl Send for MessageBuilder
impl Sync for MessageBuilder
impl Unpin for MessageBuilder
impl UnwindSafe for MessageBuilder
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