pub enum ValidatedWrite<M: Model> {
Create(InsertQuery<M>),
Update(UpdateQuery<M>),
}Variants§
Create(InsertQuery<M>)
Update(UpdateQuery<M>)
Implementations§
Source§impl<M: Model + Send + 'static> ValidatedWrite<M>
impl<M: Model + Send + 'static> ValidatedWrite<M>
Source§impl<M: Model> ValidatedWrite<M>
impl<M: Model> ValidatedWrite<M>
pub fn set<T, V>(self, field: ModelField<M, T>, value: V) -> Selfwhere
V: QueryValue<T>,
Auto Trait Implementations§
impl<M> Freeze 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