pub struct Flow {
pub id: Uuid,
pub start_time: DateTime<Utc>,
pub end_time: Option<DateTime<Utc>>,
pub network: NetworkInfo,
pub layer: Layer,
pub tags: Vec<String>,
pub meta: HashMap<String, String>,
}Expand description
The central data structure representing a captured traffic flow. Designed to support L3/L4 layers initially, with L7 (HTTP) as a specialized layer.
Fields§
§id: Uuid§start_time: DateTime<Utc>§end_time: Option<DateTime<Utc>>§network: NetworkInfoL3/L4 Connection Info (IP, Port, Protocol)
layer: LayerThe application layer protocol detected or parsed
Analysis tags (e.g., “error”, “large-body”, “injected”)
meta: HashMap<String, String>Internal processing metadata (not necessarily for UI)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Flow
impl<'de> Deserialize<'de> for Flow
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 Flow
impl !RefUnwindSafe for Flow
impl Send for Flow
impl Sync for Flow
impl Unpin for Flow
impl UnsafeUnpin for Flow
impl !UnwindSafe for Flow
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