lattice_sdk/api/types/
provenance.rs

1pub use crate::prelude::*;
2
3/// Data provenance.
4#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash)]
5pub struct Provenance {
6    /// Name of the integration that produced this entity
7    #[serde(rename = "integrationName")]
8    #[serde(skip_serializing_if = "Option::is_none")]
9    pub integration_name: Option<String>,
10    /// Source data type of this entity. Examples: ADSB, Link16, etc.
11    #[serde(rename = "dataType")]
12    #[serde(skip_serializing_if = "Option::is_none")]
13    pub data_type: Option<String>,
14    /// An ID that allows an element from a source to be uniquely identified
15    #[serde(rename = "sourceId")]
16    #[serde(skip_serializing_if = "Option::is_none")]
17    pub source_id: Option<String>,
18    /// The time, according to the source system, that the data in the entity was last modified. Generally, this should
19    /// be the time that the source-reported time of validity of the data in the entity. This field must be
20    /// updated with every change to the entity or else Entity Manager will discard the update.
21    #[serde(rename = "sourceUpdateTime")]
22    #[serde(skip_serializing_if = "Option::is_none")]
23    pub source_update_time: Option<DateTime<Utc>>,
24    /// Description of the modification source. In the case of a user this is the email address.
25    #[serde(rename = "sourceDescription")]
26    #[serde(skip_serializing_if = "Option::is_none")]
27    pub source_description: Option<String>,
28}