Enum serde_any::format::Format[][src]

pub enum Format {
    Toml,
    Json,
    Yaml,
    Ron,
    Xml,
    Url,
}

Serialization or deserialization formats

Variants

TOML (Tom's Obvious, Minimal Language), enabled by the toml feature, implemented using toml.

JSON (JavaScript Object Notation), enabled by the json feature, implemented using serde_json.

YAML (YAML Ain't Markup Language), enabled by the yaml feature, implemented using serde_yaml.

RON (Rusty Object Notation), enabled by the ron feature, implemented using ron.

XML (Rusty Object Notation), enabled by the xml feature, implemented using serde-xml-rs.

Url encoding (also known as percent encoding), enabled by the url feature, implemented using serde_urlencode.

Methods

impl Format
[src]

Checks whether this format is supported

Support for different formats is controlled by the features used when building serde_any.

Trait Implementations

impl Clone for Format
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Format
[src]

impl Debug for Format
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Format
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Format
[src]

impl Display for Format
[src]

Formats the value using the given formatter. Read more

impl FromStr for Format
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for Format

impl Sync for Format