Skip to main content

decode_broker_id

Function decode_broker_id 

Source
pub fn decode_broker_id(encoded: &str, broker_id: &str) -> String
Expand description

Decodes an encoded string back to the original ClientOrderId value.

If the string starts with a known broker prefix, the payload is decoded and the original ID is reconstructed. Strings without a recognized prefix are returned as-is for backward compatibility.