[−][src]Struct fasters::Template
Templates are used to represent the structure of the data that is to be encoded. A template represents a logical unit of data as it is transmitted from sender to receiver. In other words, a template is used to represent a specific message type. When planning to encode a data feed a user should begin by converting standard message formats to templates.
Templates need to be communicated from sender to receiver. The originator of the data is responsible for distributing the templates once they have been defined.
Methods
impl Template
[src]
pub fn new() -> Self
[src]
pub fn new_dict(dictionary: HashMap<String, Element>) -> Self
[src]
Custom tag mapping.
pub fn with_name<S: Into<String>>(self, name: S) -> Self
[src]
pub fn with_element(self, elem: Element) -> Self
[src]
pub fn from_fixml<S: AsRef<str>>(xml: S) -> Result<Self>
[src]
pub fn from_compact<S: AsRef<str>>(formula: S) -> Result<Self>
[src]
Parses a template definition using the traditional FIX tag=value
syntax.
pub fn codegen(&self, settings: Settings) -> String
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,