Struct restq::ast::dml::BulkUpdate
source · pub struct BulkUpdate {
pub table: TableName,
pub columns: Vec<ColumnName>,
pub values: Vec<Vec<Value>>,
}
Expand description
PATCH /product{*product_id,name} 1,go pro,1,go pro hero4 2,shovel,2,slightly used shovel
Fields§
§table: TableName
§columns: Vec<ColumnName>
§values: Vec<Vec<Value>>
Implementations§
source§impl BulkUpdate
impl BulkUpdate
sourcepub fn into_sql_statements(
&self,
table_lookup: Option<&TableLookup>
) -> Result<Vec<Statement>, Error>
pub fn into_sql_statements( &self, table_lookup: Option<&TableLookup> ) -> Result<Vec<Statement>, Error>
convert bulk update into sql statements
Trait Implementations§
source§impl Clone for BulkUpdate
impl Clone for BulkUpdate
source§fn clone(&self) -> BulkUpdate
fn clone(&self) -> BulkUpdate
Returns a copy 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 BulkUpdate
impl Debug for BulkUpdate
source§impl<'de> Deserialize<'de> for BulkUpdate
impl<'de> Deserialize<'de> for BulkUpdate
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 PartialEq for BulkUpdate
impl PartialEq for BulkUpdate
source§fn eq(&self, other: &BulkUpdate) -> bool
fn eq(&self, other: &BulkUpdate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BulkUpdate
impl Serialize for BulkUpdate
impl StructuralPartialEq for BulkUpdate
Auto Trait Implementations§
impl Freeze for BulkUpdate
impl RefUnwindSafe for BulkUpdate
impl Send for BulkUpdate
impl Sync for BulkUpdate
impl Unpin for BulkUpdate
impl UnwindSafe for BulkUpdate
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