tmflib 0.1.40

Interface library for processing TMF payloads
Documentation
1
2
3
4
5
6
7
8
9
use serde::{Deserialize, Serialize};
///A `PerformanceMeasurement` to be created defined by value or existing defined by reference. The polymorphic attributes @type, @schemaLocation & @referredType are related to the product entity and not the `RelatedProductRefOrValue` class itself
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct PerformanceMeasurementRefOrValue {}
impl std::fmt::Display for PerformanceMeasurementRefOrValue {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
        write!(f, "{}", serde_json::to_string(self).unwrap())
    }
}