pub struct PostgresAttributes {
pub host: String,
pub port: i32,
pub database: String,
pub username: String,
pub password: String,
pub table_name: String,
pub sslmode: String,
pub max_retry: i32,
pub retry_interval_sec: i32,
}Expand description
Configuration for delivering stream batches to a PostgreSQL database.
Fields§
§host: StringDatabase host.
port: i32Database port.
database: StringDatabase name.
username: StringUsername used to authenticate.
password: StringPassword used to authenticate.
table_name: StringDestination table for inserted rows.
sslmode: StringPostgres SSL mode (e.g. disable, require, verify-full).
max_retry: i32Maximum number of retry attempts for a failed write.
retry_interval_sec: i32Seconds to wait between retry attempts.
Trait Implementations§
Source§impl Clone for PostgresAttributes
impl Clone for PostgresAttributes
Source§fn clone(&self) -> PostgresAttributes
fn clone(&self) -> PostgresAttributes
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 PostgresAttributes
impl Debug for PostgresAttributes
Source§impl<'de> Deserialize<'de> for PostgresAttributes
impl<'de> Deserialize<'de> for PostgresAttributes
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
Auto Trait Implementations§
impl Freeze for PostgresAttributes
impl RefUnwindSafe for PostgresAttributes
impl Send for PostgresAttributes
impl Sync for PostgresAttributes
impl Unpin for PostgresAttributes
impl UnsafeUnpin for PostgresAttributes
impl UnwindSafe for PostgresAttributes
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