pub fn apply_context(
ctx: Context,
) -> (Option<String>, Option<Vec<String>>, Option<HashMap<String, String>>)Expand description
Convert a loaded crate::context::Context into the three optional fields
that are stamped onto a StreamEventRequest.
flow_id— taken directly fromctx.flow_idlabels—Nonewhen the vec is empty,Some(vec)otherwiseparams—Nonewhen the map is empty,Some(HashMap)otherwise (BTreeMap → HashMap conversion)
This is a pure function so it can be unit-tested without I/O.