Trait poem_openapi::types::ToXML

source ·
pub trait ToXML: Type {
    // Required method
    fn to_xml(&self) -> Option<Value>;

    // Provided method
    fn to_xml_string(&self) -> String { ... }
}
Expand description

Represents a type that can converted to XML value.

Required Methods§

source

fn to_xml(&self) -> Option<Value>

Convert this value to Value.

Provided Methods§

source

fn to_xml_string(&self) -> String

Convert this value to XML string.

Implementations on Foreign Types§

source§

impl<T: ToXML> ToXML for Box<T>

source§

impl ToXML for i8

source§

impl<T: ToXML> ToXML for &T

source§

impl ToXML for Value

source§

impl<T: ToXML> ToXML for Arc<T>

source§

impl ToXML for i32

source§

impl ToXML for i16

source§

impl ToXML for i64

Implementors§

source§

impl<T: Serialize + Send + Sync> ToXML for Any<T>