pub struct UpdateMany {
pub model: String,
pub where_clauses: Vec<Where>,
pub data: IndexMap<String, DbValue>,
}Expand description
Multi-row update query contract for adapters.
Fields§
§model: String§where_clauses: Vec<Where>§data: IndexMap<String, DbValue>Implementations§
Source§impl UpdateMany
impl UpdateMany
pub fn new(model: impl Into<String>) -> UpdateMany
pub fn where_clause(self, where_clause: Where) -> UpdateMany
pub fn data(self, field: impl Into<String>, value: DbValue) -> UpdateMany
Trait Implementations§
Source§impl Clone for UpdateMany
impl Clone for UpdateMany
Source§fn clone(&self) -> UpdateMany
fn clone(&self) -> UpdateMany
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpdateMany
impl Debug for UpdateMany
Source§impl<'de> Deserialize<'de> for UpdateMany
impl<'de> Deserialize<'de> for UpdateMany
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateMany, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateMany, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UpdateMany
impl PartialEq for UpdateMany
Source§impl Serialize for UpdateMany
impl Serialize for UpdateMany
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for UpdateMany
Auto Trait Implementations§
impl Freeze for UpdateMany
impl RefUnwindSafe for UpdateMany
impl Send for UpdateMany
impl Sync for UpdateMany
impl Unpin for UpdateMany
impl UnsafeUnpin for UpdateMany
impl UnwindSafe for UpdateMany
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