pub struct ApiSurrealDbSinkConfig {
pub database: String,
pub key_field: Option<String>,
pub mode: Option<ApiSurrealDbSinkMode>,
pub namespace: String,
pub password: Option<String>,
pub table: String,
pub url: String,
pub username: Option<String>,
}Expand description
ApiSurrealDbSinkConfig
JSON schema
{
"type": "object",
"required": [
"database",
"namespace",
"table",
"url"
],
"properties": {
"database": {
"type": "string"
},
"key_field": {
"type": [
"string",
"null"
]
},
"mode": {
"$ref": "#/components/schemas/ApiSurrealDbSinkMode"
},
"namespace": {
"type": "string"
},
"password": {
"type": [
"string",
"null"
]
},
"table": {
"type": "string"
},
"url": {
"type": "string"
},
"username": {
"type": [
"string",
"null"
]
}
}
}Fields§
§database: String§key_field: Option<String>§mode: Option<ApiSurrealDbSinkMode>§namespace: String§password: Option<String>§table: String§url: String§username: Option<String>Trait Implementations§
Source§impl Clone for ApiSurrealDbSinkConfig
impl Clone for ApiSurrealDbSinkConfig
Source§fn clone(&self) -> ApiSurrealDbSinkConfig
fn clone(&self) -> ApiSurrealDbSinkConfig
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 ApiSurrealDbSinkConfig
impl Debug for ApiSurrealDbSinkConfig
Source§impl<'de> Deserialize<'de> for ApiSurrealDbSinkConfig
impl<'de> Deserialize<'de> for ApiSurrealDbSinkConfig
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<ApiSurrealDbSinkConfig> for ApiSinkConfig
impl From<ApiSurrealDbSinkConfig> for ApiSinkConfig
Source§fn from(value: ApiSurrealDbSinkConfig) -> Self
fn from(value: ApiSurrealDbSinkConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ApiSurrealDbSinkConfig
impl RefUnwindSafe for ApiSurrealDbSinkConfig
impl Send for ApiSurrealDbSinkConfig
impl Sync for ApiSurrealDbSinkConfig
impl Unpin for ApiSurrealDbSinkConfig
impl UnsafeUnpin for ApiSurrealDbSinkConfig
impl UnwindSafe for ApiSurrealDbSinkConfig
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