pub enum Relation {
Undef,
One2One,
One2Many,
Many2One,
Many2Many,
}
Variants§
Undef
One2One
Represents ‘-’ one-to-one. E.g: users.id
- user_infos.user_id
.
One2Many
Represents ‘<’ one-to-many. E.g: users.id
< posts.user_id
.
Many2One
Represents ‘>’ many-to-one. E.g: posts.user_id
> users.id
.
Many2Many
Represents ‘<>’ many-to-many. E.g: authors.id
<> books.id
.
Trait Implementations§
impl Eq for Relation
impl StructuralPartialEq for Relation
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnwindSafe for Relation
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