#[non_exhaustive]pub struct ClientConnectionConfig {
pub require_connectors: bool,
pub ssl_config: Option<SslConfig>,
/* private fields */
}Expand description
Client connection configuration
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.require_connectors: boolOptional. Configuration to enforce connectors only (ex: AuthProxy) connections to the database.
ssl_config: Option<SslConfig>Optional. SSL configuration option for this instance.
Implementations§
Source§impl ClientConnectionConfig
impl ClientConnectionConfig
pub fn new() -> Self
Sourcepub fn set_require_connectors<T: Into<bool>>(self, v: T) -> Self
pub fn set_require_connectors<T: Into<bool>>(self, v: T) -> Self
Sets the value of require_connectors.
§Example
ⓘ
let x = ClientConnectionConfig::new().set_require_connectors(true);Sourcepub fn set_ssl_config<T>(self, v: T) -> Self
pub fn set_ssl_config<T>(self, v: T) -> Self
Sets the value of ssl_config.
§Example
ⓘ
use google_cloud_alloydb_v1::model::SslConfig;
let x = ClientConnectionConfig::new().set_ssl_config(SslConfig::default()/* use setters */);Sourcepub fn set_or_clear_ssl_config<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_ssl_config<T>(self, v: Option<T>) -> Self
Sets or clears the value of ssl_config.
§Example
ⓘ
use google_cloud_alloydb_v1::model::SslConfig;
let x = ClientConnectionConfig::new().set_or_clear_ssl_config(Some(SslConfig::default()/* use setters */));
let x = ClientConnectionConfig::new().set_or_clear_ssl_config(None::<SslConfig>);Trait Implementations§
Source§impl Clone for ClientConnectionConfig
impl Clone for ClientConnectionConfig
Source§fn clone(&self) -> ClientConnectionConfig
fn clone(&self) -> ClientConnectionConfig
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 ClientConnectionConfig
impl Debug for ClientConnectionConfig
Source§impl Default for ClientConnectionConfig
impl Default for ClientConnectionConfig
Source§fn default() -> ClientConnectionConfig
fn default() -> ClientConnectionConfig
Returns the “default value” for a type. Read more
Source§impl Message for ClientConnectionConfig
impl Message for ClientConnectionConfig
Source§impl PartialEq for ClientConnectionConfig
impl PartialEq for ClientConnectionConfig
impl StructuralPartialEq for ClientConnectionConfig
Auto Trait Implementations§
impl Freeze for ClientConnectionConfig
impl RefUnwindSafe for ClientConnectionConfig
impl Send for ClientConnectionConfig
impl Sync for ClientConnectionConfig
impl Unpin for ClientConnectionConfig
impl UnsafeUnpin for ClientConnectionConfig
impl UnwindSafe for ClientConnectionConfig
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