Enum serde_any::format::Format [−][src]
pub enum Format { Toml, Json, Yaml, Ron, Xml, Url, }
Serialization or deserialization formats
Variants
Toml
TOML (Tom's Obvious, Minimal Language), enabled by the toml
feature, implemented using toml
.
Json
JSON (JavaScript Object Notation), enabled by the json
feature, implemented using serde_json
.
Yaml
YAML (YAML Ain't Markup Language), enabled by the yaml
feature, implemented using serde_yaml
.
Ron
RON (Rusty Object Notation), enabled by the ron
feature, implemented using ron
.
Xml
XML (Rusty Object Notation), enabled by the xml
feature, implemented using serde-xml-rs
.
Url
Url encoding (also known as percent encoding), enabled by the url
feature, implemented using serde_urlencode
.
Methods
impl Format
[src]
impl Format
pub fn is_supported(&self) -> bool
[src]
pub fn is_supported(&self) -> bool
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]
impl Clone for Format
fn clone(&self) -> Format
[src]
fn clone(&self) -> Format
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for Format
[src]
impl Copy for Format
impl Debug for Format
[src]
impl Debug for Format
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Format
[src]
impl PartialEq for Format
fn eq(&self, other: &Format) -> bool
[src]
fn eq(&self, other: &Format) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for Format
[src]
impl Eq for Format
impl Display for Format
[src]
impl Display for Format
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl FromStr for Format
[src]
impl FromStr for Format