pub enum UpdateData {
Replace(ReplaceUpdateData),
SetEntry(SetEntryUpdateData),
DeleteEntry(DeleteEntryUpdateData),
Clear,
AppendEntry(AppendEntryUpdateData),
ListSplice(ListSpliceUpdateData),
}Variants§
Replace(ReplaceUpdateData)
Represents a replacement operation for a value.
SetEntry(SetEntryUpdateData)
Represents an update to a specific property of a value.
The key specifies which property to update, and value is the new value for that property.
DeleteEntry(DeleteEntryUpdateData)
Represents the removal of a specific property from a value.
Clear
Represents clearing all elements from a collection-type value (like an array or map).
AppendEntry(AppendEntryUpdateData)
Represents adding a new element to a collection-type value (like an array or map).
ListSplice(ListSpliceUpdateData)
Special update operation for list values that allows splicing
Implementations§
Source§impl UpdateData
impl UpdateData
Sourcepub fn with_source(self, source_id: TransceiverId) -> Update
pub fn with_source(self, source_id: TransceiverId) -> Update
Creates a new Update struct with the given TransceiverId as source id.
Trait Implementations§
Source§impl AsRef<str> for UpdateData
impl AsRef<str> for UpdateData
Source§impl Clone for UpdateData
impl Clone for UpdateData
Source§fn clone(&self) -> UpdateData
fn clone(&self) -> UpdateData
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 UpdateData
impl Debug for UpdateData
Source§impl PartialEq for UpdateData
impl PartialEq for UpdateData
Source§fn eq(&self, other: &UpdateData) -> bool
fn eq(&self, other: &UpdateData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateData
Auto Trait Implementations§
impl !RefUnwindSafe for UpdateData
impl !Send for UpdateData
impl !Sync for UpdateData
impl !UnwindSafe for UpdateData
impl Freeze for UpdateData
impl Unpin for UpdateData
impl UnsafeUnpin for UpdateData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
Source§fn is_subset_of(&self, other: &U) -> bool
fn is_subset_of(&self, other: &U) -> bool
Returns whether self is a subset of type