pub enum ActiveReference<T: Model> {
Set(T::Primary),
Insert(T::ActiveModel),
Unset,
}
Variants§
Implementations§
Source§impl<T: Model> ActiveReference<T>
impl<T: Model> ActiveReference<T>
pub async fn insert_named_value( self, vec: &mut Vec<NamedValue>, name: &'static str, conn: &mut Connection, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ActiveReference<T>
impl<T> RefUnwindSafe for ActiveReference<T>
impl<T> Send for ActiveReference<T>
impl<T> Sync for ActiveReference<T>
impl<T> Unpin for ActiveReference<T>
impl<T> UnwindSafe for ActiveReference<T>
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