mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 19:22:26 +00:00
xml use tuple structs
This commit is contained in:
@@ -9,13 +9,8 @@ use actix_web::{
|
||||
use quick_xml::name::Namespace;
|
||||
use rustical_xml::{XmlRootTag, XmlSerialize, XmlSerializeRoot};
|
||||
|
||||
// Intermediate struct because of a serde limitation, see following article:
|
||||
// https://stackoverflow.com/questions/78444158/unsupportedcannot-serialize-enum-newtype-variant-exampledata
|
||||
#[derive(XmlSerialize)]
|
||||
pub struct PropTagWrapper<T: XmlSerialize> {
|
||||
#[xml(flatten, ty = "untagged")]
|
||||
pub prop: Vec<T>,
|
||||
}
|
||||
pub struct PropTagWrapper<T: XmlSerialize>(#[xml(flatten, ty = "untagged")] pub Vec<T>);
|
||||
|
||||
// RFC 2518
|
||||
// <!ELEMENT propstat (prop, status, responsedescription?) >
|
||||
|
||||
Reference in New Issue
Block a user