pub struct ManyToManyMeta {
pub name: &'static str,
pub target: MetaRef,
pub through_table: &'static str,
pub source_column: &'static str,
pub target_column: &'static str,
pub through: Option<MetaRef>,
pub related_name: Option<&'static str>,
}Expand description
A many-to-many relation stored in a join table.
Fields§
§name: &'static strRust field name on the declaring model.
target: MetaRefTarget model.
through_table: &'static strJoin table (post_tags by default, or the explicit through model’s table).
source_column: &'static strJoin-table column pointing at the declaring model.
target_column: &'static strJoin-table column pointing at the target model.
through: Option<MetaRef>Explicit through model, if declared; None means an auto-created table.
Reverse accessor name on the target, if any.
Trait Implementations§
Source§impl Clone for ManyToManyMeta
impl Clone for ManyToManyMeta
Source§fn clone(&self) -> ManyToManyMeta
fn clone(&self) -> ManyToManyMeta
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 moreimpl Copy for ManyToManyMeta
Auto Trait Implementations§
impl Freeze for ManyToManyMeta
impl RefUnwindSafe for ManyToManyMeta
impl Send for ManyToManyMeta
impl Sync for ManyToManyMeta
impl Unpin for ManyToManyMeta
impl UnsafeUnpin for ManyToManyMeta
impl UnwindSafe for ManyToManyMeta
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