pub enum PolymorphicJoined<Base: Model, Child: Model> {
Base(Base),
Child(Child),
}Expand description
Output of a joined-table inheritance polymorphic query with a single child type.
Variants§
Trait Implementations§
Source§impl<Base: Clone + Model, Child: Clone + Model> Clone for PolymorphicJoined<Base, Child>
impl<Base: Clone + Model, Child: Clone + Model> Clone for PolymorphicJoined<Base, Child>
Source§fn clone(&self) -> PolymorphicJoined<Base, Child>
fn clone(&self) -> PolymorphicJoined<Base, Child>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Base: PartialEq + Model, Child: PartialEq + Model> PartialEq for PolymorphicJoined<Base, Child>
impl<Base: PartialEq + Model, Child: PartialEq + Model> PartialEq for PolymorphicJoined<Base, Child>
Source§fn eq(&self, other: &PolymorphicJoined<Base, Child>) -> bool
fn eq(&self, other: &PolymorphicJoined<Base, Child>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<Base: Model, Child: Model> StructuralPartialEq for PolymorphicJoined<Base, Child>
Auto Trait Implementations§
impl<Base, Child> Freeze for PolymorphicJoined<Base, Child>
impl<Base, Child> RefUnwindSafe for PolymorphicJoined<Base, Child>where
Base: RefUnwindSafe,
Child: RefUnwindSafe,
impl<Base, Child> Send for PolymorphicJoined<Base, Child>
impl<Base, Child> Sync for PolymorphicJoined<Base, Child>
impl<Base, Child> Unpin for PolymorphicJoined<Base, Child>
impl<Base, Child> UnwindSafe for PolymorphicJoined<Base, Child>where
Base: UnwindSafe,
Child: UnwindSafe,
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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).