pub struct OneToMany<Base, Related> {
pub relation_key: &'static str,
pub foreign_entity_snake_case: &'static str,
pub foreign_table: &'static str,
pub _entities: PhantomData<(Base, Related)>,
}Fields§
§relation_key: &'static str§foreign_entity_snake_case: &'static str§foreign_table: &'static str§_entities: PhantomData<(Base, Related)>Trait Implementations§
Source§impl<S, Base, Related> SubmitableRelation<S> for OneToMany<Base, Related>where
S: Database,
EntityPhantom<Base>: DynEntity<S>,
Base: Send + 'static,
EntityPhantom<Related>: DynEntity<S>,
Related: Send + 'static,
Option<i64>: Type<S> + for<'d> Decode<'d, S> + for<'e> Encode<'e, S>,
i64: Type<S> + for<'d> Encode<'d, S> + for<'d> Decode<'d, S>,
for<'s> &'s str: ColumnIndex<S::Row>,
impl<S, Base, Related> SubmitableRelation<S> for OneToMany<Base, Related>where
S: Database,
EntityPhantom<Base>: DynEntity<S>,
Base: Send + 'static,
EntityPhantom<Related>: DynEntity<S>,
Related: Send + 'static,
Option<i64>: Type<S> + for<'d> Decode<'d, S> + for<'e> Encode<'e, S>,
i64: Type<S> + for<'d> Encode<'d, S> + for<'d> Decode<'d, S>,
for<'s> &'s str: ColumnIndex<S::Row>,
Auto Trait Implementations§
impl<Base, Related> Freeze for OneToMany<Base, Related>
impl<Base, Related> RefUnwindSafe for OneToMany<Base, Related>where
Base: RefUnwindSafe,
Related: RefUnwindSafe,
impl<Base, Related> Send for OneToMany<Base, Related>
impl<Base, Related> Sync for OneToMany<Base, Related>
impl<Base, Related> Unpin for OneToMany<Base, Related>
impl<Base, Related> UnsafeUnpin for OneToMany<Base, Related>
impl<Base, Related> UnwindSafe for OneToMany<Base, Related>where
Base: UnwindSafe,
Related: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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