pub struct EmbedJunction {
pub schema: String,
pub table: String,
pub parent_columns: Vec<(String, String)>,
pub child_columns: Vec<(String, String)>,
}Expand description
The table a many-to-many relationship is joined through.
Fields§
§schema: StringSchema holding the junction table.
table: StringThe junction table’s name.
parent_columns: Vec<(String, String)>(parent column, junction column) for each column the parent joins on.
Usually one. A junction may be keyed over several columns on each side
– touched_files joins files(project_id, filename) to
users_tasks(user_id, task_id) – and joining on the first of them
alone would relate rows that are not related.
child_columns: Vec<(String, String)>(junction column, child column) for each column the child joins on.
Trait Implementations§
Source§impl Clone for EmbedJunction
impl Clone for EmbedJunction
Auto Trait Implementations§
impl Freeze for EmbedJunction
impl RefUnwindSafe for EmbedJunction
impl Send for EmbedJunction
impl Sync for EmbedJunction
impl Unpin for EmbedJunction
impl UnsafeUnpin for EmbedJunction
impl UnwindSafe for EmbedJunction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more