#[non_exhaustive]pub enum DnType {
CountryName,
LocalityName,
StateOrProvinceName,
OrganizationName,
OrganizationalUnitName,
CommonName,
CustomDnType(Vec<u64>),
}展开描述
一个 distinguished name 条目的属性类型
变体 (Non-exhaustive)§
This enum is marked as non-exhaustive
非穷尽枚举未来可能添加新的变体。因此,在对非穷尽枚举的变体进行模式匹配时,必须额外增加一个通配符分支以涵盖未来的新变体。
CountryName
X520countryName(国家名称)
LocalityName
X520LocalityName(所在地)
StateOrProvinceName
X520StateOrProvinceName(州或省名)(州或省名)(州或省名)
OrganizationName
X520OrganizationName(组织名)(组织名)(组织名)
OrganizationalUnitName
X520OrganizationalUnitName(组织单位名)(组织单位名)(组织单位名)
CommonName
X520CommonName(通用名)
CustomDnType(Vec<u64>)
自定义可分辨名称类型
实现§
Trait 实现§
impl Eq for DnType
impl StructuralPartialEq for DnType
自动 Trait 实现§
impl Freeze for DnType
impl RefUnwindSafe for DnType
impl Send for DnType
impl Sync for DnType
impl Unpin for DnType
impl UnsafeUnpin for DnType
impl UnwindSafe for DnType
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. 更多信息