dtcs 0.1.1

Reference implementation of the Data Transformation Contract Standard (DTCS)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Expression model.

use serde::{Deserialize, Serialize};

/// A DTCS expression declaration.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct Expression {
    /// Stable expression identifier.
    pub id: String,
    /// Expression body.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub expr: Option<String>,
}