1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use super::collection::Collection;
use crate::xml::default_false;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct PropertyValue {
    #[serde(rename = "@Property")]
    pub property: String,

    #[serde(rename = "@PropertyPath")]
    pub property_path: Option<String>,

    #[serde(rename = "@String")]
    pub string: Option<String>,

    #[serde(rename = "@Bool", default = "default_false")]
    pub is_bool: bool,

    pub collection: Option<Collection>,
}