pub enum UpdateTarget {
Query(Box<Query>),
Model(ModelId),
Table(TableId),
}Variants§
Query(Box<Query>)
The query must return a “model” for it to be updated.
Model(ModelId)
Update a model
Table(TableId)
Update a table
Implementations§
Trait Implementations§
Source§impl Clone for UpdateTarget
impl Clone for UpdateTarget
Source§fn clone(&self) -> UpdateTarget
fn clone(&self) -> UpdateTarget
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 UpdateTarget
impl Debug for UpdateTarget
Source§impl<'a, T: Resolve> IntoExprTarget<'a, T> for &'a UpdateTarget
impl<'a, T: Resolve> IntoExprTarget<'a, T> for &'a UpdateTarget
fn into_expr_target(self, schema: &'a T) -> ExprTarget<'a>
Source§impl PartialEq for UpdateTarget
impl PartialEq for UpdateTarget
impl StructuralPartialEq for UpdateTarget
Auto Trait Implementations§
impl Freeze for UpdateTarget
impl RefUnwindSafe for UpdateTarget
impl Send for UpdateTarget
impl Sync for UpdateTarget
impl Unpin for UpdateTarget
impl UnwindSafe for UpdateTarget
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