使用
添加到 Cargo.toml
rustcms-axum-xml = "0.3.0"
Extractor example
use ;
use Deserialize;
use Xml;
///
///
async
Response example
use ;
use Serialize;
use Uuid;
use Xml;
async
新版 rustcms-axum-xml
因 axum-xml 0.2.0 不支持新版 axum ,所以在他基础上修改,并参考 axum Json 进行处理 Xml
XML extractor for axum.
This crate provides struct Xml
that can be used to extract typed information from request's body.
Under the hood, quick-xml is used to parse payloads.
Features
encoding
: support non utf-8 payload
License
MIT