Crate precis_profiles
source ·Expand description
PRECIS Framework: Preparation, Enforcement, and Comparison of
Internationalized Strings in Application Protocols as described in
rfc8264
This crate implements the next PRECIS profiles:
rfc8265
. Preparation, Enforcement, and Comparison of Internationalized Strings RepresentingUsernames
andPasswords
.rfc8266
. Preparation, Enforcement, and Comparison of Internationalized Strings Representing Nicknames
assert_eq!(Nickname::prepare("Guybrush Threepwood"),
Ok(Cow::from("Guybrush Threepwood")));
assert_eq!(Nickname::enforce(" Guybrush Threepwood "),
Ok(Cow::from("Guybrush Threepwood")));
assert_eq!(Nickname::compare("Guybrush Threepwood ",
"guybrush threepwood"), Ok(true));
Re-exports§
pub use precis_core;
Structs§
Nickname
. Nicknames or display names in messaging and text conferencing technologies; pet names for devices, accounts, and people; and other uses of nicknames, display names, or pet names. Look at theIANA
Considerations section for more details.OpaqueString
Profile designed to deal with passwords and other opaque strings in security and application protocols. Replaces: TheSASLprep
profile ofStringprep
. Look at theIANA
Considerations section for more details.UsernameCaseMapped
. Profile designed to deal withusernames
in security and application protocols. It replaces theSASLprep
profile ofStringprep
. Look at theIANA
Considerations section for more details.UsernameCasePreserved
. Profile designed to deal withusernames
in security and application protocols. It replaces theSASLprep
profile ofStringprep
. Look at theIANA
Considerations section for more details.
Constants§
- The Unicode version of data