pub struct PostgresWriterConfig {
pub table: String,
pub uri: String,
}
Expand description
Postgres output connector configuration.
JSON schema
{
"description": "Postgres output connector configuration.",
"type": "object",
"required": [
"table",
"uri"
],
"properties": {
"table": {
"description": "The table to write the output to.",
"type": "string"
},
"uri": {
"description": "Postgres URI.\nSee: <https://docs.rs/tokio-postgres/0.7.12/tokio_postgres/config/struct.Config.html>",
"type": "string"
}
}
}
Fields§
§table: String
The table to write the output to.
uri: String
Implementations§
Source§impl PostgresWriterConfig
impl PostgresWriterConfig
pub fn builder() -> PostgresWriterConfig
Trait Implementations§
Source§impl Clone for PostgresWriterConfig
impl Clone for PostgresWriterConfig
Source§fn clone(&self) -> PostgresWriterConfig
fn clone(&self) -> PostgresWriterConfig
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 PostgresWriterConfig
impl Debug for PostgresWriterConfig
Source§impl<'de> Deserialize<'de> for PostgresWriterConfig
impl<'de> Deserialize<'de> for PostgresWriterConfig
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 From<&PostgresWriterConfig> for PostgresWriterConfig
impl From<&PostgresWriterConfig> for PostgresWriterConfig
Source§fn from(value: &PostgresWriterConfig) -> Self
fn from(value: &PostgresWriterConfig) -> Self
Converts to this type from the input type.
Source§impl From<PostgresWriterConfig> for PostgresWriterConfig
impl From<PostgresWriterConfig> for PostgresWriterConfig
Source§fn from(value: PostgresWriterConfig) -> Self
fn from(value: PostgresWriterConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for PostgresWriterConfig
impl Serialize for PostgresWriterConfig
Source§impl TryFrom<PostgresWriterConfig> for PostgresWriterConfig
impl TryFrom<PostgresWriterConfig> for PostgresWriterConfig
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PostgresWriterConfig) -> Result<Self, ConversionError>
fn try_from(value: PostgresWriterConfig) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PostgresWriterConfig
impl RefUnwindSafe for PostgresWriterConfig
impl Send for PostgresWriterConfig
impl Sync for PostgresWriterConfig
impl Unpin for PostgresWriterConfig
impl UnwindSafe for PostgresWriterConfig
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