pub struct RelationMeta {
pub kind: RelationKind,
pub target: MetaRef,
pub on_delete: OnDelete,
pub related_name: Option<&'static str>,
}Expand description
Relation carried by a foreign-key column.
Fields§
§kind: RelationKindFK or one-to-one.
target: MetaRefReferenced model.
on_delete: OnDeleteDeletion policy.
Reverse accessor name on the target (posts), if any.
Trait Implementations§
Source§impl Clone for RelationMeta
impl Clone for RelationMeta
Source§fn clone(&self) -> RelationMeta
fn clone(&self) -> RelationMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RelationMeta
Auto Trait Implementations§
impl Freeze for RelationMeta
impl RefUnwindSafe for RelationMeta
impl Send for RelationMeta
impl Sync for RelationMeta
impl Unpin for RelationMeta
impl UnsafeUnpin for RelationMeta
impl UnwindSafe for RelationMeta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more