pub struct OneToManyInsert<S> {
pub input: Id,
pub schema_relation_key: &'static str,
pub relation_key: &'static str,
pub related_entity: Box<dyn DynEntity<S>>,
pub output: Option<Value>,
}Fields§
§input: Id§schema_relation_key: &'static str§relation_key: &'static str§output: Option<Value>Trait Implementations§
Source§impl<S> DynRelation<S> for OneToManyInsert<S>
impl<S> DynRelation<S> for OneToManyInsert<S>
fn take2(&mut self, _local_id: i64) -> Option<Value>
fn sub_op2<'this>( &'this mut self, pool: Pool<S>, _: i64, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'this>>
fn on_insert(&self, st: &mut InsertStOne<'_, S>)where
S: Database,
fn schema_key(&self) -> &str
Source§fn from_row(&mut self, row: &S::Row)where
S: Database,
fn from_row(&mut self, row: &S::Row)where
S: Database,
👎Deprecated:
this method should be combined with take
fn on_select(&self, st: &mut SelectSt<S, QuickQuery<'_>>)where
S: SupportNamedBind + Database,
fn on_update(&self, st: &mut UpdateSt<S, QuickQuery<'_>>)where
S: Database + SupportNamedBind,
fn sub_op<'this>( &'this mut self, _pool: Pool<S>, _limit: Arc<dyn SelectStLimit<S>>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'this>>
Auto Trait Implementations§
impl<S> !RefUnwindSafe for OneToManyInsert<S>
impl<S> !UnwindSafe for OneToManyInsert<S>
impl<S> Freeze for OneToManyInsert<S>
impl<S> Send for OneToManyInsert<S>
impl<S> Sync for OneToManyInsert<S>
impl<S> Unpin for OneToManyInsert<S>
impl<S> UnsafeUnpin for OneToManyInsert<S>
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