pub struct TransformConfig {
pub max_payload_bytes: Option<u32>,
pub timestamp_start: Option<String>,
pub replace_ip: Vec<String>,
pub truncate_by_proto: Vec<ProtocolTruncationConfig>,
}Expand description
Packet-level transformation configuration ([transform] TOML table).
Fields§
§max_payload_bytes: Option<u32>Global maximum payload bytes (per-protocol rules take precedence when set).
timestamp_start: Option<String>Shift all timestamps so the capture starts at this datetime (RFC 3339 or ms epoch).
replace_ip: Vec<String>IP address replacement rules as "OLD_IP=NEW_IP" strings.
truncate_by_proto: Vec<ProtocolTruncationConfig>Per-protocol payload truncation rules.
Trait Implementations§
Source§impl Debug for TransformConfig
impl Debug for TransformConfig
Source§impl Default for TransformConfig
impl Default for TransformConfig
Source§fn default() -> TransformConfig
fn default() -> TransformConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransformConfig
impl<'de> Deserialize<'de> for TransformConfig
Source§fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>
fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>
Given a mutable
Value, allows you to deserialize the type from it,
or accumulate 1 or more errorsAuto Trait Implementations§
impl Freeze for TransformConfig
impl RefUnwindSafe for TransformConfig
impl Send for TransformConfig
impl Sync for TransformConfig
impl Unpin for TransformConfig
impl UnsafeUnpin for TransformConfig
impl UnwindSafe for TransformConfig
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more