[−][src]Enum diesel_factories::Association
A "belongs to" association that may or may not have been inserted yet.
You will normally be using this when setting up "belongs to" associations between models in factories.
Variants
Model(&'a Model)
An associated model that has been inserted into the database.
You shouldn't have to use this direclty but instead just Association::default()
.
A factory for a model that hasn't been inserted yet into the database.
You shouldn't have to use this direclty but instead just Association::default()
.
Trait Implementations
impl<'a, Model: Clone, Factory: Clone> Clone for Association<'a, Model, Factory>
[src]
fn clone(&self) -> Association<'a, Model, Factory>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, Model: Debug, Factory: Debug> Debug for Association<'a, Model, Factory>
[src]
impl<Model, Factory: Default, '_> Default for Association<'_, Model, Factory>
[src]
Auto Trait Implementations
impl<'a, Model, Factory> RefUnwindSafe for Association<'a, Model, Factory> where
Factory: RefUnwindSafe,
Model: RefUnwindSafe,
Factory: RefUnwindSafe,
Model: RefUnwindSafe,
impl<'a, Model, Factory> Send for Association<'a, Model, Factory> where
Factory: Send,
Model: Sync,
Factory: Send,
Model: Sync,
impl<'a, Model, Factory> Sync for Association<'a, Model, Factory> where
Factory: Sync,
Model: Sync,
Factory: Sync,
Model: Sync,
impl<'a, Model, Factory> Unpin for Association<'a, Model, Factory> where
Factory: Unpin,
Factory: Unpin,
impl<'a, Model, Factory> UnwindSafe for Association<'a, Model, Factory> where
Factory: UnwindSafe,
Model: RefUnwindSafe,
Factory: UnwindSafe,
Model: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,