pub struct HasOne {
pub foreign_key: String,
pub child_model: String,
pub child_pk: String,
}Expand description
一对一关系配置
Fields§
§foreign_key: String§child_model: String§child_pk: StringTrait 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 UnsafeUnpin 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