poem_openapi::types

Trait ParseFromXML

Source
pub trait ParseFromXML: Sized + Type {
    // Required method
    fn parse_from_xml(value: Option<Value>) -> ParseResult<Self>;

    // Provided method
    fn parse_from_xml_string(s: &str) -> ParseResult<Self> { ... }
}
Expand description

Represents a type that can parsing from XML.

Required Methods§

Provided Methods§

Source

fn parse_from_xml_string(s: &str) -> ParseResult<Self>

Parse from XML string.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ParseFromXML for Value

Source§

impl ParseFromXML for i8

Source§

impl ParseFromXML for i16

Source§

impl ParseFromXML for i32

Source§

impl ParseFromXML for i64

Source§

impl<T: ParseFromXML> ParseFromXML for Box<T>

Source§

impl<T: ParseFromXML> ParseFromXML for Arc<T>

Implementors§