pub struct Update { /* private fields */ }Expand description
Represents an update to a value from a source TransceiverId
Implementations§
Source§impl Update
impl Update
Sourcepub fn new(source_id: TransceiverId, data: UpdateData) -> Self
pub fn new(source_id: TransceiverId, data: UpdateData) -> Self
Creates a new Update struct with the given TransceiverId as source id and an empty path.
pub fn source_id(&self) -> &TransceiverId
pub fn data(&self) -> &UpdateData
pub fn path(&self) -> &[ValueContainer]
pub fn operation(&self) -> &UpdateOperation
pub fn into_operation(self) -> UpdateOperation
pub fn into_parts(self) -> (TransceiverId, UpdateOperation, Vec<ValueContainer>)
Trait Implementations§
Source§impl<'de> DeserializeWithSerdeContext<'de> for Update
impl<'de> DeserializeWithSerdeContext<'de> for Update
fn deserialize_with_ctx<D: Deserializer<'de>>( ctx: &SerdeContext<'_>, deserializer: D, ) -> Result<Self, D::Error>
Source§impl SerializeWithSerdeContext for Update
impl SerializeWithSerdeContext for Update
fn serialize_with_ctx<S: Serializer>( &self, ctx: &SerdeContext<'_>, serializer: S, ) -> Result<S::Ok, S::Error>
impl StructuralPartialEq for Update
Auto Trait Implementations§
impl !RefUnwindSafe for Update
impl !Send for Update
impl !Sync for Update
impl !UnwindSafe for Update
impl Forget for Update
impl Freeze for Update
impl Move for Update
impl Unpin for Update
impl UnsafeUnpin for Update
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> DeserializeWithSerdeContextDyn for Twhere
T: for<'de> DeserializeWithSerdeContext<'de>,
impl<T> DeserializeWithSerdeContextDyn for Twhere
T: for<'de> DeserializeWithSerdeContext<'de>,
fn deserialize_with_ctx_dyn<'de>( ctx: &SerdeContext<'_>, deserializer: &mut dyn Deserializer<'de>, ) -> Result<T, Error>
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> SerializeWithSerdeContextDyn for Twhere
T: SerializeWithSerdeContext,
impl<T> SerializeWithSerdeContextDyn for Twhere
T: SerializeWithSerdeContext,
Source§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