Skip to main content

meta_language/translation/surface/
record_entry.rs

1//! Ordered ordinary record entries, retaining the original source value.
2use serde::{Deserialize, Serialize};
3
4use super::SExpr;
5
6#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
7#[serde(deny_unknown_fields)]
8pub struct SRecordEntry {
9    #[serde(default, skip_serializing_if = "Option::is_none")]
10    pub name: Option<String>,
11    #[serde(default)]
12    pub spread: bool,
13    pub value: SExpr,
14}