pub struct ElementObject {
pub local_name: String,
pub namespace_uri: Option<String>,
pub namespace_prefix: Option<String>,
pub extra_namespaces: Vec<(String, String)>,
pub attributes: Vec<Attribute>,
pub children: Vec<ContentHash>,
pub inclusive_hash: ContentHash,
}Expand description
An element node in the Merkle DAG.
Fields§
§local_name: StringThe element’s local name.
namespace_uri: Option<String>The element’s namespace URI, if any.
namespace_prefix: Option<String>The namespace prefix used in the original XML (e.g. “app” for <app:item>).
extra_namespaces: Vec<(String, String)>Extra namespace declarations on this element for descendant convenience (prefix, URI pairs not used by this element itself).
attributes: Vec<Attribute>Attributes in canonical order.
children: Vec<ContentHash>Ordered child object hashes for graph traversal.
inclusive_hash: ContentHashInclusive C14N hash, indexed for drift detection compatibility.
Trait Implementations§
Source§impl Clone for ElementObject
impl Clone for ElementObject
Source§fn clone(&self) -> ElementObject
fn clone(&self) -> ElementObject
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElementObject
impl Debug for ElementObject
Source§impl PartialEq for ElementObject
impl PartialEq for ElementObject
impl Eq for ElementObject
impl StructuralPartialEq for ElementObject
Auto Trait Implementations§
impl Freeze for ElementObject
impl RefUnwindSafe for ElementObject
impl Send for ElementObject
impl Sync for ElementObject
impl Unpin for ElementObject
impl UnsafeUnpin for ElementObject
impl UnwindSafe for ElementObject
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 more