Expand description
Falco-style formatting for fields and events
This module provides the format::Format
trait, which, similar to std::fmt::Debug
, enables
you to get a text representation of a field or an event. The differences compared to Debug
are:
- the output format follows the formatters from
libsinsp
(although it’s not exact, as it uses e.g. theDebug
impl forstd::time::Duration
for pretty printing time intervals) - the output can be configured in a limited fashion using the template parameter (see
format::format_type
)
Modules§
- Formatting types for the
Format
trait
Traits§
- Get a Falco-style string representation of a field or an event