tmflib 0.1.37

Interface library for processing TMF payloads
Documentation
use serde::{Serialize, Deserialize};
///PolicyExpression is a constraint based on text expression and parsed by an Expression Language (SpEL, JS, Groovy, FEEL, ...)
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct PolicyExpressionMvo {
    ///Type of the expression
    #[serde(rename = "@type")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
    ///Expression language command
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub expression: Option<String>,
    ///Defines expression language used to build expression
    #[serde(rename = "expressionLanguage")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub expression_language: Option<String>,
}
impl std::fmt::Display for PolicyExpressionMvo {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
        write!(f, "{}", serde_json::to_string(self).unwrap())
    }
}