pub struct PendingChange {
pub token: ChangeToken,
pub id: PropertyId,
pub previous: PropertyValue,
pub proposed: PropertyValue,
}Expand description
A staged user edit awaiting a one-shot decision (P5).
Nothing has been applied while a change is pending: previous is still
the stored value, so a denial is a pure rollback that emits no Changed
event.
Fields§
§token: ChangeTokenOne-shot decision handle.
id: PropertyIdThe property being edited.
previous: PropertyValueThe value still stored (the rollback target).
proposed: PropertyValueThe value a commit would install.
Trait Implementations§
Source§impl Clone for PendingChange
impl Clone for PendingChange
Source§impl Debug for PendingChange
impl Debug for PendingChange
Source§impl PartialEq for PendingChange
impl PartialEq for PendingChange
impl StructuralPartialEq for PendingChange
Auto Trait Implementations§
impl Forget for PendingChange
impl Freeze for PendingChangewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<PropertyValue>: Freeze,
impl Move for PendingChange
impl RefUnwindSafe for PendingChange
impl Send for PendingChangewhere
RawVecInner: Send,
impl Sync for PendingChangewhere
RawVecInner: Sync,
impl Unpin for PendingChange
impl UnsafeUnpin for PendingChangewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<PropertyValue>: UnsafeUnpin,
impl UnwindSafe for PendingChangewhere
RawVecInner: UnwindSafe,
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