[−][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()
.
Factory(Factory)
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<'_, Model, Factory: Default> Default for Association<'_, Model, Factory>
[src]
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]
Performs copy-assignment from source
. Read more
impl<'a, Model: Debug, Factory: Debug> Debug for Association<'a, Model, Factory>
[src]
Auto Trait Implementations
impl<'a, Model, Factory> Send for Association<'a, Model, Factory> where
Factory: Send,
Model: Sync,
Factory: Send,
Model: Sync,
impl<'a, Model, Factory> Unpin for Association<'a, Model, Factory> where
Factory: Unpin,
Factory: Unpin,
impl<'a, Model, Factory> Sync for Association<'a, Model, Factory> where
Factory: Sync,
Model: Sync,
Factory: Sync,
Model: Sync,
impl<'a, Model, Factory> UnwindSafe for Association<'a, Model, Factory> where
Factory: UnwindSafe,
Model: RefUnwindSafe,
Factory: UnwindSafe,
Model: RefUnwindSafe,
impl<'a, Model, Factory> RefUnwindSafe for Association<'a, Model, Factory> where
Factory: RefUnwindSafe,
Model: RefUnwindSafe,
Factory: RefUnwindSafe,
Model: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &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, 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,