pub struct WithOne<M, R, Relation = (), Key = i64> {
pub model: M,
pub related: R,
/* private fields */
}Expand description
A model and its eagerly loaded belongs_to relation.
Fields§
§model: MTrait Implementations§
Auto Trait Implementations§
impl<M, R, Relation, Key> Freeze for WithOne<M, R, Relation, Key>
impl<M, R, Relation, Key> RefUnwindSafe for WithOne<M, R, Relation, Key>
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,
impl<M, R, Relation, Key> UnwindSafe for WithOne<M, R, Relation, Key>
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