pub struct OcsfDecoderConfig {
pub version: Option<String>,
pub max_size: Option<usize>,
}Expand description
Configuration for the OCSF Decoder.
Fields§
§version: Option<String>OCSF schema version to use (e.g., “1.0”).
max_size: Option<usize>Maximum size of a single message in bytes.
Implementations§
Source§impl OcsfDecoderConfig
impl OcsfDecoderConfig
pub fn component_metadata() -> ComponentMetadata
Trait Implementations§
Source§impl Clone for OcsfDecoderConfig
impl Clone for OcsfDecoderConfig
Source§fn clone(&self) -> OcsfDecoderConfig
fn clone(&self) -> OcsfDecoderConfig
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 OcsfDecoderConfig
impl Debug for OcsfDecoderConfig
Source§impl DecoderConfig for OcsfDecoderConfig
impl DecoderConfig for OcsfDecoderConfig
Source§impl Default for OcsfDecoderConfig
impl Default for OcsfDecoderConfig
Source§impl<'de> Deserialize<'de> for OcsfDecoderConfig
impl<'de> Deserialize<'de> for OcsfDecoderConfig
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
Source§impl HasFieldsMetadata for OcsfDecoderConfig
impl HasFieldsMetadata for OcsfDecoderConfig
Source§fn fields_metadata() -> Vec<FieldMetadata>
fn fields_metadata() -> Vec<FieldMetadata>
Returns a list of metadata for all fields in the struct.
Source§impl PartialEq for OcsfDecoderConfig
impl PartialEq for OcsfDecoderConfig
Source§impl Serialize for OcsfDecoderConfig
impl Serialize for OcsfDecoderConfig
impl StructuralPartialEq for OcsfDecoderConfig
Auto Trait Implementations§
impl Freeze for OcsfDecoderConfig
impl RefUnwindSafe for OcsfDecoderConfig
impl Send for OcsfDecoderConfig
impl Sync for OcsfDecoderConfig
impl Unpin for OcsfDecoderConfig
impl UnsafeUnpin for OcsfDecoderConfig
impl UnwindSafe for OcsfDecoderConfig
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