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