pub struct LinkDef {
pub field: &'static str,
pub local: &'static str,
pub target_table: &'static str,
pub remote: &'static str,
}Expand description
One #[model(link(…))] as the derive emits it: owner.local = target.remote is the join.
Fields§
§field: &'static strThe marker field the link was declared on: the name Owner::field() answers to.
local: &'static strThe owner’s column holding the value.
target_table: &'static strThe target’s (qualified) table.
remote: &'static strThe target’s column the value names.
Trait Implementations§
Auto Trait Implementations§
impl Forget for LinkDef
impl Freeze for LinkDef
impl RefUnwindSafe for LinkDef
impl Send for LinkDef
impl Sync for LinkDef
impl Unpin for LinkDef
impl UnsafeUnpin for LinkDef
impl UnwindSafe for LinkDef
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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