pub struct Defaults {
pub rate: Option<f64>,
pub duration: Option<String>,
pub encoder: Option<EncoderConfig>,
pub sink: Option<SinkConfig>,
pub labels: Option<BTreeMap<String, String>>,
pub on_sink_error: Option<OnSinkError>,
pub while_clause: Option<WhileClause>,
pub delay_clause: Option<DelayClause>,
}Expand description
Shared defaults inherited by all entries in a v2 scenario file.
Fields set here act as fallbacks for entries that omit the corresponding field. Defaults resolution is performed in a later compilation phase (PR 3), not during parsing.
Fields§
§rate: Option<f64>Default event rate in events per second.
duration: Option<String>Default total run duration (e.g. "30s", "5m"). Applied per entry —
each entry runs for this long from its own resolved start, so a cascade’s
total wall-clock is max(phase_offset + duration), not duration.
encoder: Option<EncoderConfig>Default encoder configuration.
sink: Option<SinkConfig>Default sink configuration.
labels: Option<BTreeMap<String, String>>Default static labels merged into every entry.
on_sink_error: Option<OnSinkError>Default sink-error policy inherited by every entry.
while_clause: Option<WhileClause>Default while: clause inherited by every entry.
delay_clause: Option<DelayClause>Default delay: clause inherited by every entry.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Defaults
impl<'de> Deserialize<'de> for Defaults
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 Defaults
impl RefUnwindSafe for Defaults
impl Send for Defaults
impl Sync for Defaults
impl Unpin for Defaults
impl UnsafeUnpin for Defaults
impl UnwindSafe for Defaults
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