pub trait SetField<F> {
    // Required method
    fn set_with<'a, V>(
        &'a mut self,
        field: F,
        value: V,
        setting: V::SerializeSettings
    )
       where V: FieldType<'a>;

    // Provided method
    fn set<'a, V>(&'a mut self, field: F, value: V)
       where V: FieldType<'a> { ... }
}
Expand description

Allows to write FIX fields.

Required Methods§

source

fn set_with<'a, V>( &'a mut self, field: F, value: V, setting: V::SerializeSettings )where V: FieldType<'a>,

Writes a field with custom FieldType::SerializeSettings.

Provided Methods§

source

fn set<'a, V>(&'a mut self, field: F, value: V)where V: FieldType<'a>,

Writes a field with default FieldType::SerializeSettings.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, B> SetField<u32> for EncoderHandle<'a, B>where B: Buffer,

source§

impl<'a, B> SetField<NonZeroU32> for EncoderHandle<'a, B>where B: Buffer,

source§

impl<'a, B, F> SetField<&F> for EncoderHandle<'a, B>where B: Buffer, F: IsFieldDefinition,