Skip to main content

MultiSelectRelatedQuery

Struct MultiSelectRelatedQuery 

Source
pub struct MultiSelectRelatedQuery<M, R1, Relation1, R2, Relation2> { /* private fields */ }

Implementations§

Source§

impl<M, R1, Relation1, R2, Relation2> MultiSelectRelatedQuery<M, R1, Relation1, R2, Relation2>
where M: Model + Send + 'static, R1: Model + Send + 'static, R2: Model + Send + 'static, Relation1: Send + 'static, Relation2: 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, database: &Database, ) -> Result<Vec<Loaded<M, (LoadedOne<R1, Relation1>, LoadedOne<R2, Relation2>)>>, OrmError>

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

§

impl<M, R1, Relation1, R2, Relation2> UnwindSafe for MultiSelectRelatedQuery<M, R1, Relation1, R2, Relation2>
where SelectQuery<M>: UnwindSafe, BelongsTo<M, R1, Relation1>: UnwindSafe, BelongsTo<M, R2, Relation2>: 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, <T as TryFrom<U>>::Error>

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.