pub struct ObservationDiff {
pub epoch_before: u64,
pub epoch_after: u64,
pub url_before: String,
pub url_after: String,
pub document_replaced: bool,
pub added: Vec<ObservedNode>,
pub removed: Vec<String>,
pub changed: Vec<NodeChange>,
}Expand description
What one action changed. Elements are matched by selector; an element with no selector (it cannot be targeted by ref) is not part of the diff.
Fields§
§epoch_before: u64§epoch_after: u64§url_before: String§url_after: String§document_replaced: boolThe main document was replaced (a navigation or reload). Every earlier ref is refused.
added: Vec<ObservedNode>Elements that were not there before, with their refs in epoch_after.
removed: Vec<String>Selectors of elements that are gone.
changed: Vec<NodeChange>Implementations§
Trait Implementations§
Source§impl Clone for ObservationDiff
impl Clone for ObservationDiff
Source§impl Debug for ObservationDiff
impl Debug for ObservationDiff
Auto Trait Implementations§
impl Forget for ObservationDiff
impl Freeze for ObservationDiff
impl Move for ObservationDiff
impl RefUnwindSafe for ObservationDiff
impl Send for ObservationDiff
impl Sync for ObservationDiff
impl Unpin for ObservationDiff
impl UnsafeUnpin for ObservationDiff
impl UnwindSafe for ObservationDiff
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