Skip to main content

Extra

Type Alias Extra 

Source
pub type Extra = Map<String, Value>;
Expand description

Free-form map used as a forward-compatibility safety net on the wire types that model MockServer actions. Any JSON field the typed model does not yet name is captured here (via #[serde(flatten)]) so it survives a deserialize-then-serialize round-trip instead of being silently dropped.

An empty map contributes no keys when serialized, so a flattened Extra is invisible on the wire unless the server actually sent unknown fields.

Aliased Typeยง

pub struct Extra { /* private fields */ }