pub struct YXmlEvent { /* private fields */ }Expand description
Event pushed into callbacks registered with yxmlelem_observe function. It contains
all attribute changes made within a scope of corresponding transaction
(see: yxmlelem_event_keys) as well as child XML nodes changes (see: yxmlelem_event_delta)
and navigation data used to identify a YXmlElement instance which triggered this event.
Methods from Deref<Target = XmlEvent>§
Sourcepub fn children_changed(&self) -> bool
pub fn children_changed(&self) -> bool
True if any child XML nodes have been changed within bounds of current transaction.
Sourcepub fn path(&self) -> VecDeque<PathSegment>
pub fn path(&self) -> VecDeque<PathSegment>
Returns a path from root type down to [XmlElement] instance which emitted this event.
Sourcepub fn delta(&self, txn: &TransactionMut<'_>) -> &[Change]
pub fn delta(&self, txn: &TransactionMut<'_>) -> &[Change]
Returns a summary of XML child nodes changed within corresponding [XmlElement] collection within bounds of current transaction.
Sourcepub fn added(&self, txn: &TransactionMut<'_>) -> &HashSet<ID>
pub fn added(&self, txn: &TransactionMut<'_>) -> &HashSet<ID>
Returns a collection of block identifiers that have been added within a bounds of current transaction.
Sourcepub fn deleted(&self, txn: &TransactionMut<'_>) -> &HashSet<ID>
pub fn deleted(&self, txn: &TransactionMut<'_>) -> &HashSet<ID>
Returns a collection of block identifiers that have been removed within a bounds of current transaction.
Sourcepub fn keys(&self, txn: &TransactionMut<'_>) -> &HashMap<Arc<str>, EntryChange>
pub fn keys(&self, txn: &TransactionMut<'_>) -> &HashMap<Arc<str>, EntryChange>
Returns a summary of attribute changes made over corresponding [XmlElement] collection within bounds of current transaction.