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