pub struct XmlFragment {
pub name: String,
pub attributes: Vec<(String, String)>,
pub children: Vec<XmlFragmentChild>,
}Expand description
A generic XML element preserved with its qualified names intact.
When serialized, the element name comes from the enclosing field or,
for auto-filter children, from XmlFragment::name.
Fields§
§name: String§attributes: Vec<(String, String)>§children: Vec<XmlFragmentChild>Trait Implementations§
Source§impl Clone for XmlFragment
impl Clone for XmlFragment
Source§fn clone(&self) -> XmlFragment
fn clone(&self) -> XmlFragment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 XmlFragment
impl Debug for XmlFragment
Source§impl Default for XmlFragment
impl Default for XmlFragment
Source§fn default() -> XmlFragment
fn default() -> XmlFragment
Returns the “default value” for a type. Read more
Source§impl PartialEq for XmlFragment
impl PartialEq for XmlFragment
Source§impl Serialize for XmlFragment
impl Serialize for XmlFragment
impl StructuralPartialEq for XmlFragment
Auto Trait Implementations§
impl Freeze for XmlFragment
impl RefUnwindSafe for XmlFragment
impl Send for XmlFragment
impl Sync for XmlFragment
impl Unpin for XmlFragment
impl UnsafeUnpin for XmlFragment
impl UnwindSafe for XmlFragment
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