lattice_sdk/api/types/
relations.rs

1pub use crate::prelude::*;
2
3/// Relations describes the relationships of this Task, such as assignment, or if the Task has any parents.
4#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
5pub struct Relations {
6    /// Who or what, if anyone, this Task is currently assigned to.
7    #[serde(skip_serializing_if = "Option::is_none")]
8    pub assignee: Option<Principal>,
9    /// If this Task is a "sub-Task", what is its parent, none if empty.
10    #[serde(rename = "parentTaskId")]
11    #[serde(skip_serializing_if = "Option::is_none")]
12    pub parent_task_id: Option<String>,
13}