pub struct HasOne {
pub target: ModelId,
pub expr_ty: Type,
pub pair: FieldId,
}Fields§
§target: ModelIdAssociated model
expr_ty: TypeThe association’s expression type. This is the type the field evaluates to from a user’s point of view.
pair: FieldIdThe BelongsTo association that pairs with this
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HasOne
impl RefUnwindSafe for HasOne
impl Send for HasOne
impl Sync for HasOne
impl Unpin for HasOne
impl UnwindSafe for HasOne
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