pub struct FieldSink { /* private fields */ }Expand description
Field encoder with TWS sentinel handling.
Implementations§
Source§impl FieldSink
impl FieldSink
Sourcepub fn push<T>(&mut self, value: T) -> TwsApiResult<&mut Self>where
T: TwsField,
pub fn push<T>(&mut self, value: T) -> TwsApiResult<&mut Self>where
T: TwsField,
Appends a regular field.
Sourcepub fn push_empty<T>(&mut self, value: T) -> TwsApiResult<&mut Self>where
T: TwsNullableField,
pub fn push_empty<T>(&mut self, value: T) -> TwsApiResult<&mut Self>where
T: TwsNullableField,
Appends a field where TWS unset sentinels are encoded as empty values.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Returns encoded fields.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldSink
impl RefUnwindSafe for FieldSink
impl Send for FieldSink
impl Sync for FieldSink
impl Unpin for FieldSink
impl UnsafeUnpin for FieldSink
impl UnwindSafe for FieldSink
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more