Skip to main content

MultiSelectRelatedQuery

Struct MultiSelectRelatedQuery 

Source
pub struct MultiSelectRelatedQuery<M, R1, Relation1, R2: Model, Relation2, Key1 = i64> { /* private fields */ }

Implementations§

Source§

impl<M, R1, Relation1, R2, Relation2, Key1> MultiSelectRelatedQuery<M, R1, Relation1, R2, Relation2, Key1>
where M: Model + Send + 'static, R1: Model + Send + 'static, R2: Model + Send + 'static,

Source

pub fn filter(self, expr: Expr) -> Self

Source

pub fn order_by(self, order: OrderBy) -> Self

Source

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

Auto Trait Implementations§

§

impl<M, R1, Relation1, R2, Relation2, Key1> Forget for MultiSelectRelatedQuery<M, R1, Relation1, R2, Relation2, Key1>

§

impl<M, R1, Relation1, R2, Relation2, Key1> Freeze for MultiSelectRelatedQuery<M, R1, Relation1, R2, Relation2, Key1>
where SelectQuery<M>: Freeze, BelongsTo<M, R1, Relation1, Key1>: Freeze, BelongsTo<M, R2, Relation2, <R2 as Model>::PrimaryKey>: Freeze,

§

impl<M, R1, Relation1, R2, Relation2, Key1> Move for MultiSelectRelatedQuery<M, R1, Relation1, R2, Relation2, Key1>

§

impl<M, R1, Relation1, R2, Relation2, Key1> RefUnwindSafe for MultiSelectRelatedQuery<M, R1, Relation1, R2, Relation2, Key1>
where SelectQuery<M>: RefUnwindSafe, BelongsTo<M, R1, Relation1, Key1>: RefUnwindSafe, BelongsTo<M, R2, Relation2, <R2 as Model>::PrimaryKey>: RefUnwindSafe,

§

impl<M, R1, Relation1, R2, Relation2, Key1> Send for MultiSelectRelatedQuery<M, R1, Relation1, R2, Relation2, Key1>
where SelectQuery<M>: Send, BelongsTo<M, R1, Relation1, Key1>: Send, BelongsTo<M, R2, Relation2, <R2 as Model>::PrimaryKey>: Send,

§

impl<M, R1, Relation1, R2, Relation2, Key1> Sync for MultiSelectRelatedQuery<M, R1, Relation1, R2, Relation2, Key1>
where SelectQuery<M>: Sync, BelongsTo<M, R1, Relation1, Key1>: Sync, BelongsTo<M, R2, Relation2, <R2 as Model>::PrimaryKey>: Sync,

§

impl<M, R1, Relation1, R2, Relation2, Key1> Unpin for MultiSelectRelatedQuery<M, R1, Relation1, R2, Relation2, Key1>
where SelectQuery<M>: Unpin, BelongsTo<M, R1, Relation1, Key1>: Unpin, BelongsTo<M, R2, Relation2, <R2 as Model>::PrimaryKey>: Unpin,

§

impl<M, R1, Relation1, R2, Relation2, Key1> UnsafeUnpin for MultiSelectRelatedQuery<M, R1, Relation1, R2, Relation2, Key1>
where SelectQuery<M>: UnsafeUnpin, BelongsTo<M, R1, Relation1, Key1>: UnsafeUnpin, BelongsTo<M, R2, Relation2, <R2 as Model>::PrimaryKey>: UnsafeUnpin,

§

impl<M, R1, Relation1, R2, Relation2, Key1> UnwindSafe for MultiSelectRelatedQuery<M, R1, Relation1, R2, Relation2, Key1>
where SelectQuery<M>: UnwindSafe, BelongsTo<M, R1, Relation1, Key1>: UnwindSafe, BelongsTo<M, R2, Relation2, <R2 as Model>::PrimaryKey>: 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.