Struct Field

Source
pub struct Field<'a>(/* private fields */);
Expand description

A field is the most granular message structure abstraction. It carries a specific business meaning as described by the FIX specifications. The data domain of a Field is either a Datatype or a “code set”, i.e. enumeration.

Implementations§

Source§

impl<'a> Field<'a>

Source

pub fn doc_url_onixs(&self, version: &str) -> String

Source

pub fn is_num_in_group(&self) -> bool

Source

pub fn fix_datatype(&self) -> FixDatatype

Returns the FixDatatype of self.

Source

pub fn name(&self) -> &str

Returns the name of self. Field names are unique across each FIX Dictionary.

Source

pub fn tag(&self) -> TagU32

Returns the numeric tag of self. Field tags are unique across each FIX Dictionary.

Source

pub fn enums(&self) -> Option<impl Iterator<Item = FieldEnum<'_>>>

In case this field allows any value, it returns None; otherwise; it returns an Iterator of all allowed values.

Source

pub fn data_type(&self) -> Datatype<'_>

Returns the Datatype of self.

Source

pub fn data_tag(&self) -> Option<TagU32>

Source

pub fn required_in_xml_messages(&self) -> bool

Source

pub fn description(&self) -> Option<&str>

Trait Implementations§

Source§

impl<'a> Clone for Field<'a>

Source§

fn clone(&self) -> Field<'a>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for Field<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> IsFieldDefinition for Field<'a>

Source§

fn name(&self) -> &str

Returns the official, ASCII, human-readable name associated with self.
Source§

fn tag(&self) -> TagU32

Returns the FIX tag associated with self.
Source§

fn location(&self) -> FieldLocation

Returns the field location of self.
Source§

impl<'a> Copy for Field<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Field<'a>

§

impl<'a> RefUnwindSafe for Field<'a>

§

impl<'a> Send for Field<'a>

§

impl<'a> Sync for Field<'a>

§

impl<'a> Unpin for Field<'a>

§

impl<'a> UnwindSafe for Field<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.