Skip to main content

WithMany

Struct WithMany 

Source
pub struct WithMany<M, R, Relation = (), Key = i64> {
    pub model: M,
    pub related: Vec<R>,
    /* private fields */
}
Expand description

A model and its eagerly loaded reverse relation.

Fields§

§model: M§related: Vec<R>

Trait Implementations§

Source§

impl<M: Debug, R: Debug, Relation: Debug, Key: Debug> Debug for WithMany<M, R, Relation, Key>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<M, R, Relation, Key> Freeze for WithMany<M, R, Relation, Key>
where M: Freeze, Vec<R>: Freeze, PhantomData<Relation>: Freeze, PhantomData<Key>: Freeze,

§

impl<M, R, Relation, Key> RefUnwindSafe for WithMany<M, R, Relation, Key>

§

impl<M, R, Relation, Key> Send for WithMany<M, R, Relation, Key>
where M: Send, Vec<R>: Send, PhantomData<Relation>: Send, PhantomData<Key>: Send,

§

impl<M, R, Relation, Key> Sync for WithMany<M, R, Relation, Key>
where M: Sync, Vec<R>: Sync, PhantomData<Relation>: Sync, PhantomData<Key>: Sync,

§

impl<M, R, Relation, Key> Unpin for WithMany<M, R, Relation, Key>
where M: Unpin, Vec<R>: Unpin, PhantomData<Relation>: Unpin, PhantomData<Key>: Unpin,

§

impl<M, R, Relation, Key> UnsafeUnpin for WithMany<M, R, Relation, Key>

§

impl<M, R, Relation, Key> UnwindSafe for WithMany<M, R, Relation, Key>

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.