[][src]Enum juniper_eager_loading::LoadChildrenOutput

pub enum LoadChildrenOutput<ChildModel, JoinModel = ()> {
    ChildModels(Vec<ChildModel>),
    ChildAndJoinModels(Vec<(ChildModel, JoinModel)>),
}

The result of loading child models.

HasOne, OptionHasOne, HasMany can return the child models directly because the model has the foreign key. However for HasManyThrough neither the parent or child model has any of the foreign keys. Only the join model does. So we have to include those in the result.

Unless you're customizing EagerLoadChildrenOfType you shouldn't have to worry about this.

Variants

ChildModels(Vec<ChildModel>)

Child models were loaded.

ChildAndJoinModels(Vec<(ChildModel, JoinModel)>)

Child models along with the respective join model was loaded.

Trait Implementations

impl<ChildModel: Debug, JoinModel: Debug> Debug for LoadChildrenOutput<ChildModel, JoinModel>[src]

Auto Trait Implementations

impl<ChildModel, JoinModel> RefUnwindSafe for LoadChildrenOutput<ChildModel, JoinModel> where
    ChildModel: RefUnwindSafe,
    JoinModel: RefUnwindSafe

impl<ChildModel, JoinModel> Send for LoadChildrenOutput<ChildModel, JoinModel> where
    ChildModel: Send,
    JoinModel: Send

impl<ChildModel, JoinModel> Sync for LoadChildrenOutput<ChildModel, JoinModel> where
    ChildModel: Sync,
    JoinModel: Sync

impl<ChildModel, JoinModel> Unpin for LoadChildrenOutput<ChildModel, JoinModel> where
    ChildModel: Unpin,
    JoinModel: Unpin

impl<ChildModel, JoinModel> UnwindSafe for LoadChildrenOutput<ChildModel, JoinModel> where
    ChildModel: UnwindSafe,
    JoinModel: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.