pub struct OptionsTemplate {
pub template_id: u16,
pub options_scope_length: u16,
pub options_length: u16,
pub scope_fields: Vec<OptionsTemplateScopeField>,
pub option_fields: Vec<TemplateField>,
}
Fields§
§template_id: u16
As a router generates different template FlowSets to match the type of NetFlow data it is exporting, each template is given a unique ID. This uniqueness is local to the router that generated the template ID. The Template ID is greater than 255. Template IDs inferior to 255 are reserved.
options_scope_length: u16
This field gives the length in bytes of any scope fields that are contained in this options’ template.
options_length: u16
This field gives the length (in bytes) of any Options field definitions that are contained in this options template
scope_fields: Vec<OptionsTemplateScopeField>
Options Scope Fields
option_fields: Vec<TemplateField>
Options Fields
Trait Implementations§
Source§impl Clone for OptionsTemplate
impl Clone for OptionsTemplate
Source§fn clone(&self) -> OptionsTemplate
fn clone(&self) -> OptionsTemplate
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 OptionsTemplate
impl Debug for OptionsTemplate
Source§impl Default for OptionsTemplate
impl Default for OptionsTemplate
Source§fn default() -> OptionsTemplate
fn default() -> OptionsTemplate
Returns the “default value” for a type. Read more
Source§impl<'nom> Parse<&'nom [u8]> for OptionsTemplate
impl<'nom> Parse<&'nom [u8]> for OptionsTemplate
Source§impl PartialEq for OptionsTemplate
impl PartialEq for OptionsTemplate
Source§impl Serialize for OptionsTemplate
impl Serialize for OptionsTemplate
impl StructuralPartialEq for OptionsTemplate
Auto Trait Implementations§
impl Freeze for OptionsTemplate
impl RefUnwindSafe for OptionsTemplate
impl Send for OptionsTemplate
impl Sync for OptionsTemplate
impl Unpin for OptionsTemplate
impl UnwindSafe for OptionsTemplate
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