pub struct PostgreSqlConnectionInfo {
pub connection_info: ConnectionInfo,
pub server_name: String,
pub database_name: Option<String>,
pub port: i64,
pub encrypt_connection: Option<bool>,
pub trust_server_certificate: Option<bool>,
}
Expand description
Information for connecting to PostgreSQL server
Fields§
§connection_info: ConnectionInfo
§server_name: String
Name of the server
database_name: Option<String>
Name of the database
port: i64
Port for Server
encrypt_connection: Option<bool>
Whether to encrypt the connection
trust_server_certificate: Option<bool>
Whether to trust the server certificate
Implementations§
source§impl PostgreSqlConnectionInfo
impl PostgreSqlConnectionInfo
pub fn new( connection_info: ConnectionInfo, server_name: String, port: i64 ) -> Self
Trait Implementations§
source§impl Clone for PostgreSqlConnectionInfo
impl Clone for PostgreSqlConnectionInfo
source§fn clone(&self) -> PostgreSqlConnectionInfo
fn clone(&self) -> PostgreSqlConnectionInfo
Returns a copy 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 PostgreSqlConnectionInfo
impl Debug for PostgreSqlConnectionInfo
source§impl<'de> Deserialize<'de> for PostgreSqlConnectionInfo
impl<'de> Deserialize<'de> for PostgreSqlConnectionInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<PostgreSqlConnectionInfo> for PostgreSqlConnectionInfo
impl PartialEq<PostgreSqlConnectionInfo> for PostgreSqlConnectionInfo
source§fn eq(&self, other: &PostgreSqlConnectionInfo) -> bool
fn eq(&self, other: &PostgreSqlConnectionInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PostgreSqlConnectionInfo
impl Serialize for PostgreSqlConnectionInfo
impl StructuralPartialEq for PostgreSqlConnectionInfo
Auto Trait Implementations§
impl RefUnwindSafe for PostgreSqlConnectionInfo
impl Send for PostgreSqlConnectionInfo
impl Sync for PostgreSqlConnectionInfo
impl Unpin for PostgreSqlConnectionInfo
impl UnwindSafe for PostgreSqlConnectionInfo
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