pub struct Relationship {
pub from_table: QualifiedName,
pub to_table: QualifiedName,
pub columns: Vec<(String, String)>,
pub rel_type: RelType,
pub join_table: Option<QualifiedName>,
pub constraint_name: String,
}Fields§
§from_table: QualifiedName§to_table: QualifiedName§columns: Vec<(String, String)>Column pairs: (from_column, to_column). Empty for ManyToMany.
rel_type: RelType§join_table: Option<QualifiedName>For ManyToMany, the join table that links the two tables.
constraint_name: StringTrait Implementations§
Source§impl Clone for Relationship
impl Clone for Relationship
Source§fn clone(&self) -> Relationship
fn clone(&self) -> Relationship
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Relationship
impl RefUnwindSafe for Relationship
impl Send for Relationship
impl Sync for Relationship
impl Unpin for Relationship
impl UnsafeUnpin for Relationship
impl UnwindSafe for Relationship
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