wechat_error/convert/
for_serde_xml.rs1
2use crate::{AliError, AliErrorKind};
3
4impl From<serde_xml_rs::Error> for AliError {
5 fn from(value: serde_xml_rs::Error) -> Self {
6 let kind = AliErrorKind::DecoderError { format: "xml".to_string(), message: value.to_string() };
7 Self { kind: Box::new(kind) }
8 }
9}