pub type CountryCode = CiString<2>;Expand description
ISO-3166 alpha-2 country code of the party that owns an object.
The spec types this as CiString(2), not as “a valid ISO 3166 code”, so this crate does not
reject an unassigned code. CountryCode::is_iso_shaped answers the stricter question.
Spec: 2.3.0 §credentials_credentials_role_class
Aliased Type§
pub struct CountryCode(/* private fields */);Trait Implementations§
Source§impl CountryCodeExt for CountryCode
impl CountryCodeExt for CountryCode
Source§fn is_iso_shaped(&self) -> bool
fn is_iso_shaped(&self) -> bool
Whether the value has the shape of an ISO-3166 alpha-2 code: two ASCII letters. Read more