Trait poem_openapi::types::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§
sourcefn parse_from_xml(value: Option<Value>) -> ParseResult<Self>
fn parse_from_xml(value: Option<Value>) -> ParseResult<Self>
Parse from serde_json::Value
.
Provided Methods§
sourcefn parse_from_xml_string(s: &str) -> ParseResult<Self>
fn parse_from_xml_string(s: &str) -> ParseResult<Self>
Parse from XML string.