lattice_sdk/api/types/
system.rs

1pub use crate::prelude::*;
2
3/// System Principal representing some autonomous system.
4#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash)]
5pub struct System {
6    /// Name of the service associated with this System.
7    #[serde(rename = "serviceName")]
8    #[serde(skip_serializing_if = "Option::is_none")]
9    pub service_name: Option<String>,
10    /// The Entity ID of the System.
11    #[serde(rename = "entityId")]
12    #[serde(skip_serializing_if = "Option::is_none")]
13    pub entity_id: Option<String>,
14    /// Whether the System Principal (for example, an Asset) can own scheduling.
15    /// This means we bypass manager-owned scheduling and defer to the system
16    /// Principal to handle scheduling and give us status updates for the Task.
17    /// Regardless of the value defined by the client, the Task Manager will
18    /// determine and set this value appropriately.
19    #[serde(rename = "managesOwnScheduling")]
20    #[serde(skip_serializing_if = "Option::is_none")]
21    pub manages_own_scheduling: Option<bool>,
22}