pub struct RowsUpsert {
pub key_columns: Vec<String>,
pub rows: Vec<RowEdit>,
}
Expand description
Payload for upserting rows in a table.
JSON schema
{
"description": "Payload for upserting rows in a table.",
"type": "object",
"required": [
"rows"
],
"properties": {
"keyColumns": {
"description": "Optional column IDs, URLs, or names (fragile and
discouraged), specifying columns to be used as upsert keys.",
"examples": [
[
"c-bCdeFgh"
]
],
"type": "array",
"items": {
"type": "string"
}
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/RowEdit"
}
}
},
"additionalProperties": false,
"x-schema-name": "RowsUpsert"
}
Fields§
§key_columns: Vec<String>
Optional column IDs, URLs, or names (fragile and discouraged), specifying columns to be used as upsert keys.
rows: Vec<RowEdit>
Trait Implementations§
Source§impl Clone for RowsUpsert
impl Clone for RowsUpsert
Source§fn clone(&self) -> RowsUpsert
fn clone(&self) -> RowsUpsert
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 RowsUpsert
impl Debug for RowsUpsert
Source§impl<'de> Deserialize<'de> for RowsUpsert
impl<'de> Deserialize<'de> for RowsUpsert
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<&RowsUpsert> for RowsUpsert
impl From<&RowsUpsert> for RowsUpsert
Source§fn from(value: &RowsUpsert) -> Self
fn from(value: &RowsUpsert) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RowsUpsert
impl RefUnwindSafe for RowsUpsert
impl Send for RowsUpsert
impl Sync for RowsUpsert
impl Unpin for RowsUpsert
impl UnwindSafe for RowsUpsert
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