pub struct BelongsTo {
pub target: ModelId,
pub expr_ty: Type,
pub pair: Option<FieldId>,
pub foreign_key: ForeignKey,
}Fields§
§target: ModelIdModel that owns the relation
expr_ty: TypeThe association’s expression type. This is the type the field evaluates to from a user’s point of view.
pair: Option<FieldId>The HasMany or HasOne association that pairs with this
foreign_key: ForeignKeyThe foreign key is a set of primitive fields that match the target’s primary key.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BelongsTo
impl RefUnwindSafe for BelongsTo
impl Send for BelongsTo
impl Sync for BelongsTo
impl Unpin for BelongsTo
impl UnwindSafe for BelongsTo
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