pub struct SourceConfig { /* private fields */ }
Expand description
Configuration for a single IPFIX Flow IE entities definition Could be the main IANA registry or a vendor specific source
Implementations§
Source§impl SourceConfig
impl SourceConfig
pub const fn new( source: RegistrySource, registry_type: RegistryType, pen: u32, mod_name: String, name: String, ext_subregs_source: Option<Vec<ExternalSubRegistrySource>>, ) -> Self
pub const fn source(&self) -> &RegistrySource
pub const fn registry_type(&self) -> &RegistryType
pub const fn pen(&self) -> u32
pub const fn mod_name(&self) -> &String
pub const fn name(&self) -> &String
pub const fn ext_subregs_source( &self, ) -> &Option<Vec<ExternalSubRegistrySource>>
Trait Implementations§
Source§impl Clone for SourceConfig
impl Clone for SourceConfig
Source§fn clone(&self) -> SourceConfig
fn clone(&self) -> SourceConfig
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 SourceConfig
impl Debug for SourceConfig
Source§impl<'de> Deserialize<'de> for SourceConfig
impl<'de> Deserialize<'de> for SourceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SourceConfig
impl RefUnwindSafe for SourceConfig
impl Send for SourceConfig
impl Sync for SourceConfig
impl Unpin for SourceConfig
impl UnwindSafe for SourceConfig
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