#[non_exhaustive]
pub struct GeneralName { pub other_name: Option<OtherName>, pub rfc822_name: Option<String>, pub dns_name: Option<String>, pub directory_name: Option<Asn1Subject>, pub edi_party_name: Option<EdiPartyName>, pub uniform_resource_identifier: Option<String>, pub ip_address: Option<String>, pub registered_id: 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 (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
other_name: Option<OtherName>

Represents GeneralName using an OtherName object.

rfc822_name: Option<String>

Represents GeneralName as an RFC 822 email address.

dns_name: Option<String>

Represents GeneralName as a DNS name.

directory_name: Option<Asn1Subject>

Contains information about the certificate subject. The Subject field in the certificate identifies the entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or service. The Subject must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate.

edi_party_name: Option<EdiPartyName>

Represents GeneralName as an EdiPartyName object.

uniform_resource_identifier: Option<String>

Represents GeneralName as a URI.

ip_address: Option<String>

Represents GeneralName as an IPv4 or IPv6 address.

registered_id: Option<String>

Represents GeneralName as an object identifier (OID).

Implementations

Represents GeneralName using an OtherName object.

Represents GeneralName as an RFC 822 email address.

Represents GeneralName as a DNS name.

Contains information about the certificate subject. The Subject field in the certificate identifies the entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or service. The Subject must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate.

Represents GeneralName as an EdiPartyName object.

Represents GeneralName as a URI.

Represents GeneralName as an IPv4 or IPv6 address.

Represents GeneralName as an object identifier (OID).

Creates a new builder-style object to manufacture GeneralName

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more