#[non_exhaustive]pub struct PostgresqlProfile {
pub hostname: String,
pub port: i32,
pub username: String,
pub password: String,
pub database: String,
pub secret_manager_stored_password: String,
pub ssl_config: Option<PostgresqlSslConfig>,
/* private fields */
}Expand description
PostgreSQL database profile.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hostname: StringRequired. Hostname for the PostgreSQL connection.
port: i32Port for the PostgreSQL connection, default value is 5432.
username: StringRequired. Username for the PostgreSQL connection.
password: StringOptional. Password for the PostgreSQL connection. Mutually exclusive with
the secret_manager_stored_password field.
database: StringRequired. Database for the PostgreSQL connection.
secret_manager_stored_password: StringOptional. A reference to a Secret Manager resource name storing the
PostgreSQL connection password. Mutually exclusive with the password
field.
ssl_config: Option<PostgresqlSslConfig>Optional. SSL configuration for the PostgreSQL connection.
In case PostgresqlSslConfig is not set, the connection will use the default
SSL mode, which is prefer (i.e. this mode will only use encryption if
enabled from database side, otherwise will use unencrypted communication)
Implementations§
Source§impl PostgresqlProfile
impl PostgresqlProfile
Sourcepub fn set_hostname<T: Into<String>>(self, v: T) -> Self
pub fn set_hostname<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_username<T: Into<String>>(self, v: T) -> Self
pub fn set_username<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_password<T: Into<String>>(self, v: T) -> Self
pub fn set_password<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_database<T: Into<String>>(self, v: T) -> Self
pub fn set_database<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_secret_manager_stored_password<T: Into<String>>(self, v: T) -> Self
pub fn set_secret_manager_stored_password<T: Into<String>>(self, v: T) -> Self
Sets the value of secret_manager_stored_password.
§Example
let x = PostgresqlProfile::new().set_secret_manager_stored_password("example");Sourcepub fn set_ssl_config<T>(self, v: T) -> Selfwhere
T: Into<PostgresqlSslConfig>,
pub fn set_ssl_config<T>(self, v: T) -> Selfwhere
T: Into<PostgresqlSslConfig>,
Sets the value of ssl_config.
§Example
use google_cloud_datastream_v1::model::PostgresqlSslConfig;
let x = PostgresqlProfile::new().set_ssl_config(PostgresqlSslConfig::default()/* use setters */);Sourcepub fn set_or_clear_ssl_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostgresqlSslConfig>,
pub fn set_or_clear_ssl_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostgresqlSslConfig>,
Sets or clears the value of ssl_config.
§Example
use google_cloud_datastream_v1::model::PostgresqlSslConfig;
let x = PostgresqlProfile::new().set_or_clear_ssl_config(Some(PostgresqlSslConfig::default()/* use setters */));
let x = PostgresqlProfile::new().set_or_clear_ssl_config(None::<PostgresqlSslConfig>);Trait Implementations§
Source§impl Clone for PostgresqlProfile
impl Clone for PostgresqlProfile
Source§fn clone(&self) -> PostgresqlProfile
fn clone(&self) -> PostgresqlProfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PostgresqlProfile
impl Debug for PostgresqlProfile
Source§impl Default for PostgresqlProfile
impl Default for PostgresqlProfile
Source§fn default() -> PostgresqlProfile
fn default() -> PostgresqlProfile
Source§impl Message for PostgresqlProfile
impl Message for PostgresqlProfile
Source§impl PartialEq for PostgresqlProfile
impl PartialEq for PostgresqlProfile
impl StructuralPartialEq for PostgresqlProfile
Auto Trait Implementations§
impl Freeze for PostgresqlProfile
impl RefUnwindSafe for PostgresqlProfile
impl Send for PostgresqlProfile
impl Sync for PostgresqlProfile
impl Unpin for PostgresqlProfile
impl UnsafeUnpin for PostgresqlProfile
impl UnwindSafe for PostgresqlProfile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request