Skip to main content

parse_namespace

Function parse_namespace 

Source
pub fn parse_namespace(ns: &str) -> Result<MessageId, ParseError>
Expand description

Parse an ISO 20022 namespace URI into a MessageId.

Expects the form urn:iso:std:iso:20022:tech:xsd:{family}.{msg}.{variant}.{version}.

ยงErrors

Returns ParseError::InvalidEnvelope if the namespace does not match the expected pattern.