fixer-fix 0.10.1

Generated FIX protocol types for fixer
Documentation
// Code generated by fixer-gen. DO NOT EDIT.
#![allow(clippy::new_without_default)]
#![allow(unused_imports)]

use fixer::field_map::FieldMap;
use fixer::fix_string::FIXString;
use crate::tag;

/// `Trailer` is the `fix41` Trailer type.
pub struct Trailer<'a> {
    pub trailer: &'a mut FieldMap,
}

impl Trailer<'_> {



    /// Sets `CheckSum`, Tag 10.
    pub fn set_check_sum(&mut self, v: String) {
        self.trailer.set_field(tag::CHECK_SUM, FIXString::from(v));
    }


    /// Returns true if `CheckSum` is present, Tag 10.
    pub fn has_check_sum(&self) -> bool {
        self.trailer.has(tag::CHECK_SUM)
    }




    /// Sets `Signature`, Tag 89.
    pub fn set_signature(&mut self, v: String) {
        self.trailer.set_field(tag::SIGNATURE, FIXString::from(v));
    }


    /// Returns true if `Signature` is present, Tag 89.
    pub fn has_signature(&self) -> bool {
        self.trailer.has(tag::SIGNATURE)
    }




    /// Sets `SignatureLength`, Tag 93.
    pub fn set_signature_length(&mut self, v: isize) {
        self.trailer.set_field(tag::SIGNATURE_LENGTH, fixer::fix_int::FIXInt::from(v));
    }


    /// Returns true if `SignatureLength` is present, Tag 93.
    pub fn has_signature_length(&self) -> bool {
        self.trailer.has(tag::SIGNATURE_LENGTH)
    }


}