#[non_exhaustive]pub struct TaskState {
pub task: Option<TaskRecord>,
pub active_assignee: Option<String>,
pub rejections: Vec<TaskRejectRecord>,
pub updates: Vec<TaskUpdateRecord>,
pub terminal_report: Option<TaskTerminalReport>,
}Expand description
The task mode’s whole serialized mode_state.
#[non_exhaustive] for the reason on TaskRecord. Default is still
derived and still reachable from other crates (TaskState::default());
#[non_exhaustive] refuses only the struct-literal form, including
TaskState { ..Default::default() }.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.task: Option<TaskRecord>§active_assignee: Option<String>§rejections: Vec<TaskRejectRecord>§updates: Vec<TaskUpdateRecord>§terminal_report: Option<TaskTerminalReport>Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskState
impl<'de> Deserialize<'de> for TaskState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TaskState
impl RefUnwindSafe for TaskState
impl Send for TaskState
impl Sync for TaskState
impl Unpin for TaskState
impl UnsafeUnpin for TaskState
impl UnwindSafe for TaskState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more