pub struct IncludeSpec {
pub name: String,
pub direction: IncludeDirection,
pub related_path_segment: String,
pub our_key_column: String,
pub their_key_column: String,
}Expand description
Spec for including a related entity in list/read responses. Name is the related entity’s path_segment (e.g. “orders”, “users”).
Fields§
§name: StringAPI name for the include (path_segment of the related entity).
direction: IncludeDirectionPath segment of the related entity (for lookup in model).
our_key_column: StringOur column used in the join (our FK for to_one; our PK for to_many).
their_key_column: StringTheir column used in the join (their PK for to_one; their FK for to_many).
Trait Implementations§
Source§impl Clone for IncludeSpec
impl Clone for IncludeSpec
Source§fn clone(&self) -> IncludeSpec
fn clone(&self) -> IncludeSpec
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 moreAuto Trait Implementations§
impl Freeze for IncludeSpec
impl RefUnwindSafe for IncludeSpec
impl Send for IncludeSpec
impl Sync for IncludeSpec
impl Unpin for IncludeSpec
impl UnsafeUnpin for IncludeSpec
impl UnwindSafe for IncludeSpec
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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