Expand description
Module to handle custom serde Serializer
Modulesยง
- content ๐
- Contains serializer for content of an XML element
- element ๐
- Contains serializer for an XML element
- key ๐
- simple_
type ๐ - Contains Serde
Serializer
for XML simple types as defined in the XML Schema. - text ๐
- Contains serializer for a special
&text
field
Macrosยง
- forward ๐
- Implements serialization method by forwarding it to the serializer created by
the helper method
Serializer::ser
. - write_
primitive ๐ - Implements writing primitives to the underlying writer.
Implementor must provide
write_str(self, &str) -> Result<(), DeError>
method
Structsยง
- Serializer
- A Serializer
- XmlName ๐
- Helper struct to self-defense from errors
Enumsยง
- Indent ๐
- Quote
Level - Defines which characters would be escaped in
Text
events and attribute values.
Functionsยง
- is_
xml11_ ๐name_ char - https://www.w3.org/TR/xml11/#NT-NameChar
- is_
xml11_ ๐name_ start_ char - Almost all characters can form a name. Citation from https://www.w3.org/TR/xml11/#sec-xml11:
- to_
string - Serialize struct into a
String
. - to_
string_ with_ root - Serialize struct into a
String
using specified root tag name.root_tag
should be valid XML name, otherwise error is returned. - to_
writer - Serialize struct into a
Write
r. - to_
writer_ with_ root - Serialize struct into a
Write
r using specified root tag name.root_tag
should be valid XML name, otherwise error is returned.