Trait hotfix_encoding::SetField
source · 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§
sourcefn set_with<'a, V>(
&'a mut self,
field: F,
value: V,
setting: V::SerializeSettings
)where
V: FieldType<'a>,
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§
sourcefn set<'a, V>(&'a mut self, field: F, value: V)where
V: FieldType<'a>,
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.