1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-04-19 19:56:50 +00:00

feat: make property catalogue description optional

This commit is contained in:
Paul-Christian Volkmer 2024-05-13 13:38:39 +02:00
parent df7d31c561
commit 880325ce78

View File

@ -1,7 +1,7 @@
/* /*
* MIT License * MIT License
* *
* Copyright (c) 2023 Comprehensive Cancer Center Mainfranken * Copyright (c) 2024 Comprehensive Cancer Center Mainfranken
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -33,7 +33,8 @@ pub struct PropertyCatalogue {
#[serde(rename = "Name")] #[serde(rename = "Name")]
name: String, name: String,
#[serde(rename = "Description")] #[serde(rename = "Description")]
description: String, #[serde(skip_serializing_if = "Option::is_none")]
description: Option<String>,
#[serde(rename = "Standard")] #[serde(rename = "Standard")]
standard: String, standard: String,
#[serde(rename = "Readonly")] #[serde(rename = "Readonly")]