lattice_sdk/api/types/
override.rs

1pub use crate::prelude::*;
2
3/// Details about an override. Last write wins.
4#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
5pub struct Override {
6    /// override request id for an override request
7    #[serde(rename = "requestId")]
8    #[serde(skip_serializing_if = "Option::is_none")]
9    pub request_id: Option<String>,
10    /// proto field path which is the string representation of a field.
11    /// example: correlated.primary_entity_id would be primary_entity_id in correlated component
12    #[serde(rename = "fieldPath")]
13    #[serde(skip_serializing_if = "Option::is_none")]
14    pub field_path: Option<String>,
15    /// new field value corresponding to field path. In the shape of an empty entity with only the changed value.
16    /// example: entity: { mil_view: { disposition: Disposition_DISPOSITION_HOSTILE } }
17    #[serde(rename = "maskedFieldValue")]
18    #[serde(skip_serializing_if = "Option::is_none")]
19    pub masked_field_value: Option<Box<Entity>>,
20    /// status of the override
21    #[serde(skip_serializing_if = "Option::is_none")]
22    pub status: Option<OverrideStatus>,
23    #[serde(skip_serializing_if = "Option::is_none")]
24    pub provenance: Option<Provenance>,
25    /// The type of the override, defined by the stage of the entity lifecycle that the entity was in when the override
26    /// was requested.
27    #[serde(skip_serializing_if = "Option::is_none")]
28    pub r#type: Option<OverrideType>,
29    /// Timestamp of the override request. The timestamp is generated by the Entity Manager instance that receives the request.
30    #[serde(rename = "requestTimestamp")]
31    #[serde(skip_serializing_if = "Option::is_none")]
32    pub request_timestamp: Option<DateTime<Utc>>,
33}