Skip to main content

parse_uuid_from_value

Function parse_uuid_from_value 

Source
pub fn parse_uuid_from_value(
    value: &Value,
    field_name: &str,
) -> Result<Uuid, ClaimsError>
Expand description

Helper to parse a UUID from a JSON value.

ยงErrors

Returns ClaimsError::InvalidClaimFormat if the value is not a valid UUID string.