pub struct RelationInfo<'a> {
pub field: &'a Field,
pub related_model: &'a Model,
pub relation_type: RelationType,
pub fk_column: String,
pub ref_column: String,
}Expand description
Information about a relation from one model to another.
Fields§
§field: &'a Field§relation_type: RelationType§fk_column: StringThe FK column on the “many” side (e.g., “author_id” on Post for User.posts)
ref_column: StringThe referenced column (e.g., “id” on User)
Auto Trait Implementations§
impl<'a> Freeze for RelationInfo<'a>
impl<'a> RefUnwindSafe for RelationInfo<'a>
impl<'a> Send for RelationInfo<'a>
impl<'a> Sync for RelationInfo<'a>
impl<'a> Unpin for RelationInfo<'a>
impl<'a> UnsafeUnpin for RelationInfo<'a>
impl<'a> UnwindSafe for RelationInfo<'a>
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