#[non_exhaustive]pub struct DnsNameMapping {
pub name: String,
pub connection_type: ConnectionType,
pub dns_scope: DnsScope,
/* private fields */
}Expand description
DNS metadata.
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.name: StringThe DNS name.
connection_type: ConnectionTypeOutput only. The connection type of the DNS name.
dns_scope: DnsScopeOutput only. The scope that the DNS name applies to.
Implementations§
Source§impl DnsNameMapping
impl DnsNameMapping
pub fn new() -> Self
Sourcepub fn set_connection_type<T: Into<ConnectionType>>(self, v: T) -> Self
pub fn set_connection_type<T: Into<ConnectionType>>(self, v: T) -> Self
Sets the value of connection_type.
§Example
ⓘ
use google_cloud_sql_v1::model::dns_name_mapping::ConnectionType;
let x0 = DnsNameMapping::new().set_connection_type(ConnectionType::Public);
let x1 = DnsNameMapping::new().set_connection_type(ConnectionType::PrivateServicesAccess);
let x2 = DnsNameMapping::new().set_connection_type(ConnectionType::PrivateServiceConnect);Trait Implementations§
Source§impl Clone for DnsNameMapping
impl Clone for DnsNameMapping
Source§fn clone(&self) -> DnsNameMapping
fn clone(&self) -> DnsNameMapping
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 DnsNameMapping
impl Debug for DnsNameMapping
Source§impl Default for DnsNameMapping
impl Default for DnsNameMapping
Source§fn default() -> DnsNameMapping
fn default() -> DnsNameMapping
Returns the “default value” for a type. Read more
Source§impl Message for DnsNameMapping
impl Message for DnsNameMapping
Source§impl PartialEq for DnsNameMapping
impl PartialEq for DnsNameMapping
impl StructuralPartialEq for DnsNameMapping
Auto Trait Implementations§
impl Freeze for DnsNameMapping
impl RefUnwindSafe for DnsNameMapping
impl Send for DnsNameMapping
impl Sync for DnsNameMapping
impl Unpin for DnsNameMapping
impl UnwindSafe for DnsNameMapping
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