Skip to main content

MultiPrefetchRelatedQuery

Struct MultiPrefetchRelatedQuery 

Source
pub struct MultiPrefetchRelatedQuery<M: Model, R1, Relation1, R2, Relation2, Key1 = <M as Model>::PrimaryKey, Key2 = <M as Model>::PrimaryKey> { /* private fields */ }

Implementations§

Source§

impl<M, R1, Relation1, R2, Relation2, Key1, Key2> MultiPrefetchRelatedQuery<M, R1, Relation1, R2, Relation2, Key1, Key2>
where M: Model + Send + 'static, R1: Model + Send + 'static, R2: Model + Send + 'static, Relation1: Send + 'static, Relation2: Send + 'static, Key1: ForeignKeyValue<M::PrimaryKey>, Key2: ForeignKeyValue<M::PrimaryKey>,

Source

pub async fn all( self, db: &Database, ) -> Result<Vec<Loaded<M, (LoadedMany<R1, Relation1>, LoadedMany<R2, Relation2>)>>, OrmError>

Auto Trait Implementations§

§

impl<M, R1, Relation1, R2, Relation2, Key1, Key2> Freeze for MultiPrefetchRelatedQuery<M, R1, Relation1, R2, Relation2, Key1, Key2>
where SelectQuery<M>: Freeze, HasMany<M, R1, Relation1, Key1>: Freeze, HasMany<M, R2, Relation2, Key2>: Freeze,

§

impl<M, R1, Relation1, R2, Relation2, Key1, Key2> RefUnwindSafe for MultiPrefetchRelatedQuery<M, R1, Relation1, R2, Relation2, Key1, Key2>
where SelectQuery<M>: RefUnwindSafe, HasMany<M, R1, Relation1, Key1>: RefUnwindSafe, HasMany<M, R2, Relation2, Key2>: RefUnwindSafe,

§

impl<M, R1, Relation1, R2, Relation2, Key1, Key2> Send for MultiPrefetchRelatedQuery<M, R1, Relation1, R2, Relation2, Key1, Key2>
where SelectQuery<M>: Send, HasMany<M, R1, Relation1, Key1>: Send, HasMany<M, R2, Relation2, Key2>: Send,

§

impl<M, R1, Relation1, R2, Relation2, Key1, Key2> Sync for MultiPrefetchRelatedQuery<M, R1, Relation1, R2, Relation2, Key1, Key2>
where SelectQuery<M>: Sync, HasMany<M, R1, Relation1, Key1>: Sync, HasMany<M, R2, Relation2, Key2>: Sync,

§

impl<M, R1, Relation1, R2, Relation2, Key1, Key2> Unpin for MultiPrefetchRelatedQuery<M, R1, Relation1, R2, Relation2, Key1, Key2>
where SelectQuery<M>: Unpin, HasMany<M, R1, Relation1, Key1>: Unpin, HasMany<M, R2, Relation2, Key2>: Unpin,

§

impl<M, R1, Relation1, R2, Relation2, Key1, Key2> UnsafeUnpin for MultiPrefetchRelatedQuery<M, R1, Relation1, R2, Relation2, Key1, Key2>
where SelectQuery<M>: UnsafeUnpin, HasMany<M, R1, Relation1, Key1>: UnsafeUnpin, HasMany<M, R2, Relation2, Key2>: UnsafeUnpin,

§

impl<M, R1, Relation1, R2, Relation2, Key1, Key2> UnwindSafe for MultiPrefetchRelatedQuery<M, R1, Relation1, R2, Relation2, Key1, Key2>
where SelectQuery<M>: UnwindSafe, HasMany<M, R1, Relation1, Key1>: UnwindSafe, HasMany<M, R2, Relation2, Key2>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.