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>,
}Expand description
PostgreSQL database profile.
Fields§
§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)
Trait Implementations§
Source§impl Clone for PostgresqlProfile
impl Clone for PostgresqlProfile
Source§fn clone(&self) -> PostgresqlProfile
fn clone(&self) -> PostgresqlProfile
1.0.0 · 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 Hash for PostgresqlProfile
impl Hash for PostgresqlProfile
Source§impl Message for PostgresqlProfile
impl Message for PostgresqlProfile
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for PostgresqlProfile
impl PartialEq for PostgresqlProfile
impl Eq 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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