#[non_exhaustive]pub enum OtherNameValue {
Utf8String(String),
}展开描述
一个 OtherName 值,定义见 RFC 5280 §4.1.2.4。
虽然标准规定它可以是任意 ASN.1 类型,但 rcgen 将值限定为 UTF-8 编码字符串,因为这能覆盖最常见的用例,例如智能卡的用户主体名(UPN).
变体 (Non-exhaustive)§
This enum is marked as non-exhaustive
非穷尽枚举未来可能添加新的变体。因此,在对非穷尽枚举的变体进行模式匹配时,必须额外增加一个通配符分支以涵盖未来的新变体。
Trait 实现§
Source§impl Clone for OtherNameValue
impl Clone for OtherNameValue
Source§fn clone(&self) -> OtherNameValue
fn clone(&self) -> OtherNameValue
返回值的副本。 更多信息
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. 更多信息Source§impl Debug for OtherNameValue
impl Debug for OtherNameValue
Source§impl<T> From<T> for OtherNameValue
impl<T> From<T> for OtherNameValue
Source§impl Hash for OtherNameValue
impl Hash for OtherNameValue
Source§impl PartialEq for OtherNameValue
impl PartialEq for OtherNameValue
impl Eq for OtherNameValue
impl StructuralPartialEq for OtherNameValue
自动 Trait 实现§
impl Freeze for OtherNameValue
impl RefUnwindSafe for OtherNameValue
impl Send for OtherNameValue
impl Sync for OtherNameValue
impl Unpin for OtherNameValue
impl UnsafeUnpin for OtherNameValue
impl UnwindSafe for OtherNameValue
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. 更多信息