pub fn merge_with_chain_fields(
protocol: &str,
projection: Option<&HashSet<String>>,
include_chain: bool,
) -> Option<HashSet<String>>Expand description
Merge projection with chain fields if needed.
Returns a new set containing the projection fields plus any chain fields needed for protocol detection.