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