pub trait DataloaderInterface {
// Required methods
fn user_loader(
&self,
) -> &DataLoader<impl DataLoaderFetcher<Key = UserId, Value = User> + Send + Sync + 'static>;
fn organization_loader(
&self,
) -> &DataLoader<impl DataLoaderFetcher<Key = OrganizationId, Value = Organization> + Send + Sync + 'static>;
fn organization_member_by_user_id_loader(
&self,
) -> &DataLoader<impl DataLoaderFetcher<Key = UserId, Value = Vec<OrganizationMember>> + Send + Sync + 'static>;
}
Required Methods§
fn user_loader( &self, ) -> &DataLoader<impl DataLoaderFetcher<Key = UserId, Value = User> + Send + Sync + 'static>
fn organization_loader( &self, ) -> &DataLoader<impl DataLoaderFetcher<Key = OrganizationId, Value = Organization> + Send + Sync + 'static>
fn organization_member_by_user_id_loader( &self, ) -> &DataLoader<impl DataLoaderFetcher<Key = UserId, Value = Vec<OrganizationMember>> + Send + Sync + 'static>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.