parse_sap_odata/oasis/
property_value.rs

1use serde::{Deserialize, Serialize};
2
3use super::collection::Collection;
4use crate::utils::default_false;
5
6#[derive(Debug, Serialize, Deserialize)]
7#[serde(rename_all = "PascalCase")]
8pub struct PropertyValue {
9    #[serde(rename = "@Property")]
10    pub property: String,
11    #[serde(rename = "@PropertyPath")]
12    pub property_path: Option<String>,
13    #[serde(rename = "@String")]
14    pub string: Option<String>,
15    #[serde(rename = "@Bool", default = "default_false")]
16    pub is_bool: bool,
17    pub collection: Option<Collection>,
18}