pub struct ResourceWatchChangedAction {
pub changes: AnyValue,
}Expand description
A batch of resource changes observed by the watcher.
Watch events are coalesced into batches by the server to keep the
action stream tractable; an empty changes.items list MUST NOT be
dispatched. The reducer does not retain change history — these
actions exist purely to deliver events to subscribers, who consume
them directly off the action stream and apply their own logic.
Fields§
§changes: AnyValueThe set of changes in this batch, wrapped for forward compatibility.
Trait Implementations§
Source§impl Clone for ResourceWatchChangedAction
impl Clone for ResourceWatchChangedAction
Source§fn clone(&self) -> ResourceWatchChangedAction
fn clone(&self) -> ResourceWatchChangedAction
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 ResourceWatchChangedAction
impl Debug for ResourceWatchChangedAction
Source§impl<'de> Deserialize<'de> for ResourceWatchChangedAction
impl<'de> Deserialize<'de> for ResourceWatchChangedAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResourceWatchChangedAction
impl PartialEq for ResourceWatchChangedAction
Source§fn eq(&self, other: &ResourceWatchChangedAction) -> bool
fn eq(&self, other: &ResourceWatchChangedAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResourceWatchChangedAction
Auto Trait Implementations§
impl Freeze for ResourceWatchChangedAction
impl RefUnwindSafe for ResourceWatchChangedAction
impl Send for ResourceWatchChangedAction
impl Sync for ResourceWatchChangedAction
impl Unpin for ResourceWatchChangedAction
impl UnsafeUnpin for ResourceWatchChangedAction
impl UnwindSafe for ResourceWatchChangedAction
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