pub enum EntityState {
Unchanged,
Added,
Modified,
Deleted,
}Expand description
Lifecycle state for a tracked entity.
Variants§
Unchanged
Entity was loaded and has not requested mutable access.
Added
Entity was added locally and should be inserted by save_changes().
Modified
Entity was loaded and then mutably accessed.
Deleted
Entity was explicitly marked for deletion.
Trait Implementations§
Source§impl Clone for EntityState
impl Clone for EntityState
Source§fn clone(&self) -> EntityState
fn clone(&self) -> EntityState
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 moreSource§impl Debug for EntityState
impl Debug for EntityState
Source§impl PartialEq for EntityState
impl PartialEq for EntityState
Source§fn eq(&self, other: &EntityState) -> bool
fn eq(&self, other: &EntityState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EntityState
impl Eq for EntityState
impl StructuralPartialEq for EntityState
Auto Trait Implementations§
impl Freeze for EntityState
impl RefUnwindSafe for EntityState
impl Send for EntityState
impl Sync for EntityState
impl Unpin for EntityState
impl UnsafeUnpin for EntityState
impl UnwindSafe for EntityState
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