pub struct TemplateField {
pub field_type_number: u16,
pub field_type: V9Field,
pub field_length: u16,
}Fields§
§field_type_number: u16This numeric value represents the type of the field. The possible values of the field type are vendor specific. Cisco supplied values are consistent across all platforms that support NetFlow Version 9. At the time of the initial release of the NetFlow Version 9 code (and after any subsequent changes that could add new field-type definitions), Cisco provides a file that defines the known field types and their lengths. The currently defined field types are detailed in Table 6.
field_type: V9FieldHuman-readable type
field_length: u16This number gives the length of the above-defined field, in bytes.
Implementations§
Source§impl TemplateField
impl TemplateField
pub fn parse_as_field_value<'a>( &self, input: &'a [u8], ) -> IResult<&'a [u8], FieldValue>
Trait Implementations§
Source§impl Clone for TemplateField
impl Clone for TemplateField
Source§fn clone(&self) -> TemplateField
fn clone(&self) -> TemplateField
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TemplateField
impl Debug for TemplateField
Source§impl<'nom> Parse<&'nom [u8]> for TemplateField
impl<'nom> Parse<&'nom [u8]> for TemplateField
Source§impl PartialEq for TemplateField
impl PartialEq for TemplateField
Source§impl Serialize for TemplateField
impl Serialize for TemplateField
impl StructuralPartialEq for TemplateField
Auto Trait Implementations§
impl Freeze for TemplateField
impl RefUnwindSafe for TemplateField
impl Send for TemplateField
impl Sync for TemplateField
impl Unpin for TemplateField
impl UnwindSafe for TemplateField
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