Support setting referent properties via attributes (#843)

Co-authored-by: Kenneth Loeffler <kenloef@gmail.com>
This commit is contained in:
Micah 2024-06-20 15:48:52 -07:00 • committed by GitHub
parent a7b45ee859
commit 7e2bab921a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
64 changed files with 942 additions and 7 deletions

View file

@ -226,6 +226,11 @@ pub struct ProjectNode {
#[serde(rename = "$className", skip_serializing_if = "Option::is_none")]
pub class_name: Option<String>,
/// If set, defines an ID for the described Instance that can be used
/// to refer to it for the purpose of referent properties.
#[serde(rename = "$id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Contains all of the children of the described instance.
#[serde(flatten)]
pub children: BTreeMap<String, ProjectNode>,