Function try_match

Source
pub fn try_match<'p>(
    label_issuer: Option<Part<'p>>,
    query_issuer: Option<Part<'p>>,
) -> Result<Option<Part<'p>>, MismatchError>
Available on crate feature auth only.
Expand description

Checks whether the label issuer and the query issuer match, provided both are present.

This function returns either the label issuer or the query issuer.

ยงErrors

Returns MismatchError if the both issuers are present and do not match.