pub struct SerializeElement<'s, W: Write> { /* private fields */ }Expand description
The main element serializer for the quick-xml crate.
Trait Implementations§
Source§impl<'s, W: Write> SerializeElement for SerializeElement<'s, W>
impl<'s, W: Write> SerializeElement for SerializeElement<'s, W>
Source§type ChildrenSerializeSeq = ChildrenSerializeSeq<'s, W>
type ChildrenSerializeSeq = ChildrenSerializeSeq<'s, W>
The type of the serializer that is returned when serializing the children of this element.
Source§type SerializeElementAttributes = SerializeElementAttributes<'s, W>
type SerializeElementAttributes = SerializeElementAttributes<'s, W>
The type of the serializer that is returned when serializing the attributes of this element.
Source§fn include_prefix(
&mut self,
should_enforce: IncludePrefix,
) -> Result<Self::Ok, Self::Error>
fn include_prefix( &mut self, should_enforce: IncludePrefix, ) -> Result<Self::Ok, Self::Error>
Always serialize this element with the given prefix.
Source§fn preferred_prefix(
&mut self,
preferred_prefix: Option<Prefix<'_>>,
) -> Result<Self::Ok, Self::Error>
fn preferred_prefix( &mut self, preferred_prefix: Option<Prefix<'_>>, ) -> Result<Self::Ok, Self::Error>
Set the preferred prefix for this element.
Source§fn serialize_attributes(
self,
) -> Result<Self::SerializeElementAttributes, Self::Error>
fn serialize_attributes( self, ) -> Result<Self::SerializeElementAttributes, Self::Error>
Serialize the attributes of this element.
Source§fn serialize_children(self) -> Result<Self::ChildrenSerializeSeq, Self::Error>
fn serialize_children(self) -> Result<Self::ChildrenSerializeSeq, Self::Error>
Serialize the children of this element.