pub struct ThroughDef {
pub junction_table: String,
pub local_column: String,
pub foreign_column: String,
}Expand description
Configuration for many-to-many relations via a junction table.
Fields§
§junction_table: StringThe junction (pivot) table name.
local_column: StringColumn in the junction table that references the source table.
foreign_column: StringColumn in the junction table that references the target table.
Trait Implementations§
Source§impl Clone for ThroughDef
impl Clone for ThroughDef
Source§fn clone(&self) -> ThroughDef
fn clone(&self) -> ThroughDef
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 moreSource§impl Debug for ThroughDef
impl Debug for ThroughDef
impl Eq for ThroughDef
Source§impl PartialEq for ThroughDef
impl PartialEq for ThroughDef
impl StructuralPartialEq for ThroughDef
Auto Trait Implementations§
impl Freeze for ThroughDef
impl RefUnwindSafe for ThroughDef
impl Send for ThroughDef
impl Sync for ThroughDef
impl Unpin for ThroughDef
impl UnsafeUnpin for ThroughDef
impl UnwindSafe for ThroughDef
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