pub enum BeginString {
FIX44,
}Expand description
Represents the FIX protocol version (8) field value.
This field value determines the message format and version-specific rules that apply to subsequent tags in the message.
Variants§
FIX44
FIX.4.4 protocol version (8=FIX.4.4).
Implementations§
Source§impl BeginString
impl BeginString
Sourcepub const fn tag() -> u16
pub const fn tag() -> u16
Returns the tag used for BeginString.
Trait Implementations§
Source§impl Clone for BeginString
impl Clone for BeginString
Source§fn clone(&self) -> BeginString
fn clone(&self) -> BeginString
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BeginString
impl Debug for BeginString
Source§impl From<BeginString> for &'static [u8]
impl From<BeginString> for &'static [u8]
Source§fn from(val: BeginString) -> Self
fn from(val: BeginString) -> Self
Converts a BeginString variant into its static byte slice
representation.
This form avoids allocation and is suitable for direct use when writing FIX messages to a buffer or network stream.
Example usage:
use trafix_codec::message::field::value::begin_string::BeginString;
let bytes: &'static [u8] = BeginString::FIX44.into();
assert_eq!(bytes, b"FIX.4.4");Source§impl From<BeginString> for Vec<u8>
impl From<BeginString> for Vec<u8>
Source§fn from(val: BeginString) -> Self
fn from(val: BeginString) -> Self
Converts a BeginString variant into an owned Vec<u8>
containing its byte representation.
Example usage:
use trafix_codec::message::field::value::begin_string::BeginString;
let bytes: Vec<u8> = BeginString::FIX44.into();
assert_eq!(bytes, b"FIX.4.4");Source§impl PartialEq for BeginString
impl PartialEq for BeginString
impl Copy for BeginString
impl StructuralPartialEq for BeginString
Auto Trait Implementations§
impl Freeze for BeginString
impl RefUnwindSafe for BeginString
impl Send for BeginString
impl Sync for BeginString
impl Unpin for BeginString
impl UnwindSafe for BeginString
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