Module se

Source
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 ๐Ÿ”’
QuoteLevel
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 Writer.
to_writer_with_root
Serialize struct into a Writer using specified root tag name. root_tag should be valid XML name, otherwise error is returned.