#[non_exhaustive]pub struct BackendServiceTlsSettingsSubjectAltName {
pub dns_name: Option<String>,
pub uniform_resource_identifier: Option<String>,
/* private fields */
}Available on crate features
backend-services or region-backend-services only.Expand description
A Subject Alternative Name that the load balancer matches against the SAN field in the TLS certificate provided by the backend, specified as either a DNS name or a URI, in accordance with RFC 5280 4.2.1.6
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.dns_name: Option<String>The SAN specified as a DNS Name.
uniform_resource_identifier: Option<String>The SAN specified as a URI.
Implementations§
Source§impl BackendServiceTlsSettingsSubjectAltName
impl BackendServiceTlsSettingsSubjectAltName
pub fn new() -> Self
Sourcepub fn set_dns_name<T>(self, v: T) -> Self
pub fn set_dns_name<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_dns_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_dns_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_uniform_resource_identifier<T>(self, v: T) -> Self
pub fn set_uniform_resource_identifier<T>(self, v: T) -> Self
Sets the value of uniform_resource_identifier.
§Example
ⓘ
let x = BackendServiceTlsSettingsSubjectAltName::new().set_uniform_resource_identifier("example");Sourcepub fn set_or_clear_uniform_resource_identifier<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_uniform_resource_identifier<T>(self, v: Option<T>) -> Self
Sets or clears the value of uniform_resource_identifier.
§Example
ⓘ
let x = BackendServiceTlsSettingsSubjectAltName::new().set_or_clear_uniform_resource_identifier(Some("example"));
let x = BackendServiceTlsSettingsSubjectAltName::new().set_or_clear_uniform_resource_identifier(None::<String>);Trait Implementations§
Source§impl Clone for BackendServiceTlsSettingsSubjectAltName
impl Clone for BackendServiceTlsSettingsSubjectAltName
Source§fn clone(&self) -> BackendServiceTlsSettingsSubjectAltName
fn clone(&self) -> BackendServiceTlsSettingsSubjectAltName
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 Default for BackendServiceTlsSettingsSubjectAltName
impl Default for BackendServiceTlsSettingsSubjectAltName
Source§fn default() -> BackendServiceTlsSettingsSubjectAltName
fn default() -> BackendServiceTlsSettingsSubjectAltName
Returns the “default value” for a type. Read more
Source§impl PartialEq for BackendServiceTlsSettingsSubjectAltName
impl PartialEq for BackendServiceTlsSettingsSubjectAltName
Source§fn eq(&self, other: &BackendServiceTlsSettingsSubjectAltName) -> bool
fn eq(&self, other: &BackendServiceTlsSettingsSubjectAltName) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackendServiceTlsSettingsSubjectAltName
Auto Trait Implementations§
impl Freeze for BackendServiceTlsSettingsSubjectAltName
impl RefUnwindSafe for BackendServiceTlsSettingsSubjectAltName
impl Send for BackendServiceTlsSettingsSubjectAltName
impl Sync for BackendServiceTlsSettingsSubjectAltName
impl Unpin for BackendServiceTlsSettingsSubjectAltName
impl UnwindSafe for BackendServiceTlsSettingsSubjectAltName
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