Struct tusk_rs::query::PostgresJoin
source · pub struct PostgresJoin {
pub join_type: &'static str,
pub table: &'static str,
pub local_field: &'static str,
pub foreign_field: &'static str,
pub condition: &'static str,
}
Expand description
A struct that defines how Tusk should join tables for you.
Fields§
§join_type: &'static str
The type of join to perform. Examples are INNER JOIN, LEFT JOIN, etc.
table: &'static str
The table to join.
local_field: &'static str
The field in the local table to join on.
foreign_field: &'static str
The field in the foreign table to join on.
condition: &'static str
The condition to join on. Use SQL syntax.
Implementations§
Auto Trait Implementations§
impl Freeze for PostgresJoin
impl RefUnwindSafe for PostgresJoin
impl Send for PostgresJoin
impl Sync for PostgresJoin
impl Unpin for PostgresJoin
impl UnwindSafe for PostgresJoin
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