pub struct Element<'a> {
pub name: Cow<'a, [u8]>,
pub values: Vec<Value<'a>>,
pub attributes: Attributes<'a>,
pub namespaces: NamespacesShared<'a>,
}
Expand description
Represents a unstructured XML element.
Fields§
§name: Cow<'a, [u8]>
Name of the element.
values: Vec<Value<'a>>
Child values of this element.
attributes: Attributes<'a>
Attributes of this element.
namespaces: NamespacesShared<'a>
List of valid namespaces for this element.
Implementations§
Trait Implementations§
Source§impl WithDeserializer for Element<'static>
impl WithDeserializer for Element<'static>
Source§type Deserializer = ElementDeserializer
type Deserializer = ElementDeserializer
The deserializer to use for this type.
Source§impl<'el> WithSerializer for Element<'el>
impl<'el> WithSerializer for Element<'el>
Source§type Serializer<'x> = ElementSerializer<'x, 'el>
where
'el: 'x
type Serializer<'x> = ElementSerializer<'x, 'el> where 'el: 'x
The serializer to use for this type.
Source§fn serializer<'ser>(
&'ser self,
name: Option<&'ser str>,
is_root: bool,
) -> Result<Self::Serializer<'ser>, Error>
fn serializer<'ser>( &'ser self, name: Option<&'ser str>, is_root: bool, ) -> Result<Self::Serializer<'ser>, Error>
Initializes a new serializer from the passed
value
. Read moreimpl<'a> Eq for Element<'a>
impl<'a> StructuralPartialEq for Element<'a>
Auto Trait Implementations§
impl<'a> Freeze for Element<'a>
impl<'a> RefUnwindSafe for Element<'a>
impl<'a> Send for Element<'a>
impl<'a> Sync for Element<'a>
impl<'a> Unpin for Element<'a>
impl<'a> UnwindSafe for Element<'a>
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<'de, R, X> DeserializeSync<'de, R> for Xwhere
R: XmlReaderSync<'de>,
X: WithDeserializer,
impl<'de, R, X> DeserializeSync<'de, R> for Xwhere
R: XmlReaderSync<'de>,
X: WithDeserializer,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.