pub struct SubjectAltNames {
pub custom_sans: Option<Vec<X509Extension>>,
pub dns_names: Option<Vec<String>>,
pub email_addresses: Option<Vec<String>>,
pub ip_addresses: Option<Vec<String>>,
pub uris: Option<Vec<String>>,
}Expand description
SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the “common name” in the distinguished name).
This type is not used in any activity, and only used as part of another schema.
Fields§
§custom_sans: Option<Vec<X509Extension>>Contains additional subject alternative name values. For each custom_san, the value field must contain an ASN.1 encoded UTF8String.
dns_names: Option<Vec<String>>Contains only valid, fully-qualified host names.
email_addresses: Option<Vec<String>>Contains only valid RFC 2822 E-mail addresses.
ip_addresses: Option<Vec<String>>Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
uris: Option<Vec<String>>Contains only valid RFC 3986 URIs.
Trait Implementations§
Source§impl Clone for SubjectAltNames
impl Clone for SubjectAltNames
Source§fn clone(&self) -> SubjectAltNames
fn clone(&self) -> SubjectAltNames
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 SubjectAltNames
impl Debug for SubjectAltNames
Source§impl Default for SubjectAltNames
impl Default for SubjectAltNames
Source§fn default() -> SubjectAltNames
fn default() -> SubjectAltNames
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubjectAltNames
impl<'de> Deserialize<'de> for SubjectAltNames
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 Serialize for SubjectAltNames
impl Serialize for SubjectAltNames
impl Part for SubjectAltNames
Auto Trait Implementations§
impl Freeze for SubjectAltNames
impl RefUnwindSafe for SubjectAltNames
impl Send for SubjectAltNames
impl Sync for SubjectAltNames
impl Unpin for SubjectAltNames
impl UnwindSafe for SubjectAltNames
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