pub struct WithOne<M, R, Relation = (), Key = i64> {
pub model: M,
pub related: R,
/* private fields */
}Fields§
§model: MTrait Implementations§
Auto Trait Implementations§
impl<M, R, Relation, Key> Forget for WithOne<M, R, Relation, Key>
impl<M, R, Relation, Key> Freeze for WithOne<M, R, Relation, Key>
impl<M, R, Relation, Key> Move for WithOne<M, R, Relation, Key>
impl<M, R, Relation, Key> RefUnwindSafe for WithOne<M, R, Relation, Key>where
M: RefUnwindSafe,
R: RefUnwindSafe,
PhantomData<Relation>: RefUnwindSafe,
PhantomData<Key>: RefUnwindSafe,
impl<M, R, Relation, Key> Send for WithOne<M, R, Relation, Key>
impl<M, R, Relation, Key> Sync for WithOne<M, R, Relation, Key>
impl<M, R, Relation, Key> Unpin for WithOne<M, R, Relation, Key>
impl<M, R, Relation, Key> UnsafeUnpin for WithOne<M, R, Relation, Key>where
M: UnsafeUnpin,
R: UnsafeUnpin,
PhantomData<Relation>: UnsafeUnpin,
PhantomData<Key>: UnsafeUnpin,
impl<M, R, Relation, Key> UnwindSafe for WithOne<M, R, Relation, Key>where
M: UnwindSafe,
R: UnwindSafe,
PhantomData<Relation>: UnwindSafe,
PhantomData<Key>: UnwindSafe,
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