1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//! PropertyKey

use serde::{Deserialize, Serialize};

/// Key value pair
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct PropertyKey {
    /// Type of AST node
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<String>,
    /// PropertyKey name
    #[serde(skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// PropertyKey value
    #[serde(skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}

impl PropertyKey {
    /// Returns an instance of PropertyKey
    pub fn new() -> Self {
        Self::default()
    }
}