Function parse_request_id
pub fn parse_request_id(raw: &str) -> Option<Uuid>Expand description
order_request_id of a broker message -> our cid, if it is one.
Returns None for an empty string or anything that is not a UUID: the order was placed
elsewhere (phone, another program) and carries no cid of ours.
§Examples
use brokapi_tbank::cid::parse_request_id;
let cid = parse_request_id("67e55044-10b1-426f-9247-bb680e5fe0c8");
assert!(cid.is_some());
assert!(parse_request_id("").is_none());