pub struct UpdateData { /* private fields */ }Implementations§
Source§impl UpdateData
impl UpdateData
Sourcepub fn new(operation: UpdateOperation) -> Self
pub fn new(operation: UpdateOperation) -> Self
Creates a new UpdateData struct with the given UpdateOperation and an empty path.
pub fn new_with_path( operation: UpdateOperation, path: Vec<ValueContainer>, ) -> Self
Sourcepub fn path(&self) -> &[ValueContainer]
pub fn path(&self) -> &[ValueContainer]
The path to the value being updated. If the vector is empty, the update is applied to the root value.
pub fn into_parts(self) -> (UpdateOperation, Vec<ValueContainer>)
pub fn operation(&self) -> &UpdateOperation
pub fn into_operation(self) -> UpdateOperation
Trait Implementations§
Source§impl Clone for UpdateData
impl Clone for UpdateData
Source§impl Debug for UpdateData
impl Debug for UpdateData
Source§impl Hash for UpdateData
impl Hash for UpdateData
Source§impl PartialEq for UpdateData
impl PartialEq for UpdateData
impl StructuralPartialEq for UpdateData
Auto Trait Implementations§
impl !RefUnwindSafe for UpdateData
impl !Send for UpdateData
impl !Sync for UpdateData
impl !UnwindSafe for UpdateData
impl Forget for UpdateData
impl Freeze for UpdateData
impl Move 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