pub struct EntityEntryView {
pub type_id: TypeId,
pub type_name: String,
pub state: EntityState,
}Expand description
Lightweight, type-erased view of a pending entity entry used to build
SaveChangesContext from DbSet.entries (the real save data source).
Unlike EntityEntry, this carries no entry_id / modified_properties
(which only have meaning inside ChangeTracker). It exists so that
interceptors receive a snapshot consistent with what save_changes()
will actually commit, instead of the legacy (empty) change_tracker.
Fields§
§type_id: TypeId§type_name: String§state: EntityStateTrait Implementations§
Source§impl Clone for EntityEntryView
impl Clone for EntityEntryView
Source§fn clone(&self) -> EntityEntryView
fn clone(&self) -> EntityEntryView
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 moreAuto Trait Implementations§
impl Freeze for EntityEntryView
impl RefUnwindSafe for EntityEntryView
impl Send for EntityEntryView
impl Sync for EntityEntryView
impl Unpin for EntityEntryView
impl UnsafeUnpin for EntityEntryView
impl UnwindSafe for EntityEntryView
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