Skip to main content

set_reduction_id

Function set_reduction_id 

Source
pub fn set_reduction_id(msg: &mut ChatMessage, id: &str)
Expand description

Stamp msg with the sc.reduction metadata key pointing at id. This is the one place a reduction’s id is attached to a message; every A/B emitter should go through this rather than writing the key by hand.