[][src]Struct fasters::Template

pub struct Template { /* fields omitted */ }

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

impl Clone for Template[src]

impl Debug for Template[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.