pub enum ValidatedWrite<M>where
M: Model,{
Create(InsertQuery<M>),
Update(UpdateQuery<M>),
}Variants§
Create(InsertQuery<M>)
Update(UpdateQuery<M>)
Implementations§
Source§impl<M> ValidatedWrite<M>
impl<M> ValidatedWrite<M>
Source§impl<M> ValidatedWrite<M>where
M: Model,
impl<M> ValidatedWrite<M>where
M: Model,
pub fn set<T, V>(self, field: ModelField<M, T>, value: V) -> ValidatedWrite<M>where
V: QueryValue<T>,
Auto Trait Implementations§
impl<M> Forget for ValidatedWrite<M>
impl<M> Freeze for ValidatedWrite<M>
impl<M> Move for ValidatedWrite<M>
impl<M> RefUnwindSafe for ValidatedWrite<M>
impl<M> Send for ValidatedWrite<M>
impl<M> Sync for ValidatedWrite<M>
impl<M> Unpin for ValidatedWrite<M>
impl<M> UnsafeUnpin for ValidatedWrite<M>
impl<M> UnwindSafe for ValidatedWrite<M>
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