pub struct OptionsData {
pub fields: Vec<Vec<IPFixFieldPair>>,
pub padding: Vec<u8>,
}Fields§
§fields: Vec<Vec<IPFixFieldPair>>§padding: Vec<u8>Implementations§
Source§impl<'nom> OptionsData
impl<'nom> OptionsData
pub fn parse_be( orig_i: &'nom [u8], template: &OptionsTemplate, ) -> IResult<&'nom [u8], Self>
pub fn parse_le( orig_i: &'nom [u8], template: &OptionsTemplate, ) -> IResult<&'nom [u8], Self>
pub fn parse( orig_i: &'nom [u8], template: &OptionsTemplate, ) -> IResult<&'nom [u8], Self>
Source§impl OptionsData
impl OptionsData
Sourcepub fn new(fields: Vec<Vec<IPFixFieldPair>>) -> Self
pub fn new(fields: Vec<Vec<IPFixFieldPair>>) -> Self
Creates a new OptionsData instance with the given fields. The padding field is automatically set to an empty vector and will be calculated during export for manually created packets.
Trait Implementations§
Source§impl Clone for OptionsData
impl Clone for OptionsData
Source§fn clone(&self) -> OptionsData
fn clone(&self) -> OptionsData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptionsData
impl Debug for OptionsData
Source§impl PartialEq for OptionsData
impl PartialEq for OptionsData
Source§impl Serialize for OptionsData
impl Serialize for OptionsData
impl StructuralPartialEq for OptionsData
Auto Trait Implementations§
impl Freeze for OptionsData
impl RefUnwindSafe for OptionsData
impl Send for OptionsData
impl Sync for OptionsData
impl Unpin for OptionsData
impl UnwindSafe for OptionsData
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