pub enum RelationType {
OneToOne,
OneToMany,
ManyToOne,
ManyToMany,
}Expand description
Type of relation between models.
Variants§
OneToOne
One-to-one relation (e.g., User has one Profile).
OneToMany
One-to-many relation (e.g., User has many Posts).
ManyToOne
Many-to-one relation (e.g., Post belongs to User).
ManyToMany
Many-to-many relation (e.g., Post has many Tags).
Implementations§
Trait Implementations§
Source§impl Clone for RelationType
impl Clone for RelationType
Source§fn clone(&self) -> RelationType
fn clone(&self) -> RelationType
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RelationType
impl Debug for RelationType
Source§impl Hash for RelationType
impl Hash for RelationType
Source§impl PartialEq for RelationType
impl PartialEq for RelationType
impl Copy for RelationType
impl Eq for RelationType
impl StructuralPartialEq for RelationType
Auto Trait Implementations§
impl Freeze for RelationType
impl RefUnwindSafe for RelationType
impl Send for RelationType
impl Sync for RelationType
impl Unpin for RelationType
impl UnwindSafe for RelationType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)