#[non_exhaustive]pub struct ConnectPoolNodeConfig {
pub name: Option<String>,
pub ip_addresses: Vec<IpMapping>,
pub dns_name: Option<String>,
pub dns_names: Vec<DnsNameMapping>,
/* private fields */
}Expand description
Details of a single read pool node of a read pool.
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: Option<String>Output only. The name of the read pool node. Doesn’t include the project ID.
ip_addresses: Vec<IpMapping>Output only. Mappings containing IP addresses that can be used to connect to the read pool node.
dns_name: Option<String>Output only. The DNS name of the read pool node.
dns_names: Vec<DnsNameMapping>Output only. The list of DNS names used by this read pool node.
Implementations§
Source§impl ConnectPoolNodeConfig
impl ConnectPoolNodeConfig
pub fn new() -> Self
Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_ip_addresses<T, V>(self, v: T) -> Self
pub fn set_ip_addresses<T, V>(self, v: T) -> Self
Sets the value of ip_addresses.
§Example
ⓘ
use google_cloud_sql_v1::model::IpMapping;
let x = ConnectPoolNodeConfig::new()
.set_ip_addresses([
IpMapping::default()/* use setters */,
IpMapping::default()/* use (different) setters */,
]);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_dns_names<T, V>(self, v: T) -> Self
pub fn set_dns_names<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for ConnectPoolNodeConfig
impl Clone for ConnectPoolNodeConfig
Source§fn clone(&self) -> ConnectPoolNodeConfig
fn clone(&self) -> ConnectPoolNodeConfig
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 ConnectPoolNodeConfig
impl Debug for ConnectPoolNodeConfig
Source§impl Default for ConnectPoolNodeConfig
impl Default for ConnectPoolNodeConfig
Source§fn default() -> ConnectPoolNodeConfig
fn default() -> ConnectPoolNodeConfig
Returns the “default value” for a type. Read more
Source§impl Message for ConnectPoolNodeConfig
impl Message for ConnectPoolNodeConfig
Source§impl PartialEq for ConnectPoolNodeConfig
impl PartialEq for ConnectPoolNodeConfig
impl StructuralPartialEq for ConnectPoolNodeConfig
Auto Trait Implementations§
impl Freeze for ConnectPoolNodeConfig
impl RefUnwindSafe for ConnectPoolNodeConfig
impl Send for ConnectPoolNodeConfig
impl Sync for ConnectPoolNodeConfig
impl Unpin for ConnectPoolNodeConfig
impl UnwindSafe for ConnectPoolNodeConfig
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