pub struct GeneralName {
pub directory_name: Option<ASN1Subject>,
pub dns_name: Option<String>,
pub edi_party_name: Option<EdiPartyName>,
pub ip_address: Option<String>,
pub other_name: Option<OtherName>,
pub registered_id: Option<String>,
pub rfc_822_name: Option<String>,
pub uniform_resource_identifier: Option<String>,
}
Expand description
Describes an ASN.1 X.400 GeneralName
as defined in RFC 5280. Only one of the following naming options should be provided. Providing more than one option results in an InvalidArgsException
error.
Fields§
§directory_name: Option<ASN1Subject>
§dns_name: Option<String>
Represents GeneralName
as a DNS name.
edi_party_name: Option<EdiPartyName>
Represents GeneralName
as an EdiPartyName
object.
ip_address: Option<String>
Represents GeneralName
as an IPv4 or IPv6 address.
other_name: Option<OtherName>
Represents GeneralName
using an OtherName
object.
registered_id: Option<String>
Represents GeneralName
as an object identifier (OID).
rfc_822_name: Option<String>
Represents GeneralName
as an RFC 822 email address.
uniform_resource_identifier: Option<String>
Represents GeneralName
as a URI.
Trait Implementations§
Source§impl Clone for GeneralName
impl Clone for GeneralName
Source§fn clone(&self) -> GeneralName
fn clone(&self) -> GeneralName
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GeneralName
impl Debug for GeneralName
Source§impl Default for GeneralName
impl Default for GeneralName
Source§fn default() -> GeneralName
fn default() -> GeneralName
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GeneralName
impl<'de> Deserialize<'de> for GeneralName
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GeneralName
impl PartialEq for GeneralName
Source§impl Serialize for GeneralName
impl Serialize for GeneralName
impl StructuralPartialEq for GeneralName
Auto Trait Implementations§
impl Freeze for GeneralName
impl RefUnwindSafe for GeneralName
impl Send for GeneralName
impl Sync for GeneralName
impl Unpin for GeneralName
impl UnwindSafe for GeneralName
Blanket Implementations§
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. Read more