#[non_exhaustive]pub struct Applied {
pub created: Vec<EntityId>,
pub removed: Vec<(EntityId, Entity)>,
pub revision: u64,
}Expand description
What a committed transaction did.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.created: Vec<EntityId>Ids created, in commit order.
removed: Vec<(EntityId, Entity)>Entities removed, with their contents.
Returned rather than dropped so a caller can undo, log, or re-file them. A delete that silently discards the payload makes an editor’s undo stack impossible to build.
revision: u64The model revision after the commit.
Trait Implementations§
impl StructuralPartialEq for Applied
Auto Trait Implementations§
impl Freeze for Applied
impl RefUnwindSafe for Applied
impl Send for Applied
impl Sync for Applied
impl Unpin for Applied
impl UnsafeUnpin for Applied
impl UnwindSafe for Applied
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