pub struct QueryDef {
pub id: String,
pub key_column: String,
pub sinks: Option<Vec<String>>,
pub sql: String,
pub transform: Option<String>,
}Expand description
QueryDef
JSON schema
{
"type": "object",
"required": [
"id",
"key_column",
"sql"
],
"properties": {
"id": {
"type": "string"
},
"key_column": {
"type": "string"
},
"sinks": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"sql": {
"type": "string"
},
"transform": {
"type": [
"string",
"null"
]
}
}
}Fields§
§id: String§key_column: String§sinks: Option<Vec<String>>§sql: String§transform: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueryDef
impl<'de> Deserialize<'de> for QueryDef
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 QueryDef
impl RefUnwindSafe for QueryDef
impl Send for QueryDef
impl Sync for QueryDef
impl Unpin for QueryDef
impl UnsafeUnpin for QueryDef
impl UnwindSafe for QueryDef
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