pub struct UpdateRecordsRequest<T>
pub table_name: String,
pub expressions: Vec<String>,
pub new_values_maps: Vec<HashMap<String, Option<String>>>,
pub data: Vec<T>,
pub options: HashMap<String, String>,
The request payload for the /update/records endpoint, with its records as values, encoded when sent. RawUpdateRecordsRequest is the form sent.
Fields
table_name: StringName of table to be updated, in [schema_name.]table_name format, using standard name resolution rules. Must be a currently existing table and not a view.
expressions: Vec<String>A list of the actual predicates, one for each update; format should follow the guidelines here.
new_values_maps: Vec<HashMap<String, Option<String>>>List of new values for the matching records. Each element is a map with (key, value) pairs where the keys are the names of the columns whose values are to be updated; the values are the new values. The number of elements in the list should match the length of expressions.
data: Vec<T>The records, encoded by the schema of the first when sent.
options: HashMap<String, String>Optional parameters.
Trait Implementations
impl<T: Clone> Clone for UpdateRecordsRequest<T>
fn clone(&self) -> UpdateRecordsRequest<T>
fn clone_from(&mut self, source: &Self)
source. Read more