pub enum OwnerStrategy {
Replacing,
Appending,
}Expand description
Strategy for how the owner relationship is managed on create.
Variants§
Replacing
OneToOne / ManyToOne: new children replace existing children.
Appending
OrderedOneToMany / OneToMany / ManyToMany: new children are appended (or inserted at index).
Trait Implementations§
Source§impl Clone for OwnerStrategy
impl Clone for OwnerStrategy
Source§fn clone(&self) -> OwnerStrategy
fn clone(&self) -> OwnerStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OwnerStrategy
impl Debug for OwnerStrategy
Source§impl PartialEq for OwnerStrategy
impl PartialEq for OwnerStrategy
impl Copy for OwnerStrategy
impl StructuralPartialEq for OwnerStrategy
Auto Trait Implementations§
impl Freeze for OwnerStrategy
impl RefUnwindSafe for OwnerStrategy
impl Send for OwnerStrategy
impl Sync for OwnerStrategy
impl Unpin for OwnerStrategy
impl UnsafeUnpin for OwnerStrategy
impl UnwindSafe for OwnerStrategy
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