[][src]Trait juniper_eager_loading::Association

pub trait Association<T> {
    fn loaded_child(&mut self, child: T);
fn assert_loaded_otherwise_failed(&mut self); }

Methods available for all association types.

Required methods

fn loaded_child(&mut self, child: T)

Store the loaded child on the association.

fn assert_loaded_otherwise_failed(&mut self)

The association should have been loaded by now, if not store an error inside the association (if applicable for the particular association).

Loading content...

Implementors

impl<T> Association<T> for HasMany<T>[src]

impl<T> Association<T> for HasManyThrough<T>[src]

impl<T> Association<T> for HasOne<T>[src]

impl<T> Association<T> for OptionHasOne<T>[src]

Loading content...