pub enum XmlChange {
ElementAdded {
path: XmlPath,
content: String,
},
ElementRemoved {
path: XmlPath,
content: String,
},
AttributeChanged {
path: XmlPath,
name: String,
old: Option<String>,
new: Option<String>,
},
TextChanged {
path: XmlPath,
old: String,
new: String,
},
CommentChanged {
path: XmlPath,
old: String,
new: String,
},
}Expand description
A single change between two XML documents.
Variants§
ElementAdded
An element was added.
Fields
ElementRemoved
An element was removed.
Fields
AttributeChanged
An attribute value changed (added, removed, or modified).
Fields
TextChanged
Text content changed.
Fields
CommentChanged
Comment content changed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XmlChange
impl RefUnwindSafe for XmlChange
impl Send for XmlChange
impl Sync for XmlChange
impl Unpin for XmlChange
impl UnsafeUnpin for XmlChange
impl UnwindSafe for XmlChange
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> 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> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.