pub struct SessionId {
pub begin_string: String,
pub sender_comp_id: String,
pub target_comp_id: String,
pub sender_sub_id: Option<String>,
pub target_sub_id: Option<String>,
}Expand description
Session identifier.
Fields§
§begin_string: StringBeginString (FIX version).
sender_comp_id: StringSender CompID.
target_comp_id: StringTarget CompID.
sender_sub_id: Option<String>Optional sender sub ID.
target_sub_id: Option<String>Optional target sub ID.
Implementations§
Source§impl SessionId
impl SessionId
Sourcepub fn new(
begin_string: impl Into<String>,
sender_comp_id: impl Into<String>,
target_comp_id: impl Into<String>,
) -> SessionId
pub fn new( begin_string: impl Into<String>, sender_comp_id: impl Into<String>, target_comp_id: impl Into<String>, ) -> SessionId
Creates a new session ID.
Sourcepub fn with_sender_sub_id(self, sub_id: impl Into<String>) -> SessionId
pub fn with_sender_sub_id(self, sub_id: impl Into<String>) -> SessionId
Sets the sender sub ID.
Sourcepub fn with_target_sub_id(self, sub_id: impl Into<String>) -> SessionId
pub fn with_target_sub_id(self, sub_id: impl Into<String>) -> SessionId
Sets the target sub ID.
Trait Implementations§
impl Eq for SessionId
impl StructuralPartialEq for SessionId
Auto Trait Implementations§
impl Freeze for SessionId
impl RefUnwindSafe for SessionId
impl Send for SessionId
impl Sync for SessionId
impl Unpin for SessionId
impl UnwindSafe for SessionId
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