#[non_exhaustive]pub enum DnValue {
BmpString(BmpString),
Ia5String(Ia5String),
PrintableString(PrintableString),
TeletexString(TeletexString),
UniversalString(UniversalString),
Utf8String(String),
}展开描述
一个 distinguished name 条目
变体 (Non-exhaustive)§
This enum is marked as non-exhaustive
非穷尽枚举未来可能添加新的变体。因此,在对非穷尽枚举的变体进行模式匹配时,必须额外增加一个通配符分支以涵盖未来的新变体。
BmpString(BmpString)
使用 UCS-2 编码的字符串
Ia5String(Ia5String)
一个 ASCII 字符串。
PrintableString(PrintableString)
一个仅包含 A-Z、a-z、0-9、’()+,-./:=? 以及 <SPACE> 的 ASCII 字符串
TeletexString(TeletexString)
来自 T.61 字符集的字符串
UniversalString(UniversalString)
使用 UTF-32 编码的字符串
Utf8String(String)
使用 UTF-8 编码的字符串
Trait 实现§
impl Eq for DnValue
impl StructuralPartialEq for DnValue
自动 Trait 实现§
impl Freeze for DnValue
impl RefUnwindSafe for DnValue
impl Send for DnValue
impl Sync for DnValue
impl Unpin for DnValue
impl UnsafeUnpin for DnValue
impl UnwindSafe for DnValue
Blanket 实现§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. 更多信息