#[non_exhaustive]pub struct GoalCommandResult {
pub command_id: String,
pub status: CommandStatus,
pub turn_id: Option<String>,
}Expand description
The shared goal ack, admission-only: all five verbs answer this one shape,
differing only in when turnId is present.
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.command_id: StringEchoes the client’s id.
status: CommandStatusAdmission status.
turn_id: Option<String>Present by exactly the four result cases: an idle wake carries the fresh
goal turn’s id; a busy set/edit/resume carries the admission-time
active turn’s id (a routing fact, not a delivery promise);
pause/clear never carry it; an idle admission whose resulting goal
is not unfinished parks the notification and carries none.
Additive-optional: absent means “no turn named”, never fabricated.
Trait Implementations§
Source§impl Clone for GoalCommandResult
impl Clone for GoalCommandResult
Source§impl Debug for GoalCommandResult
impl Debug for GoalCommandResult
Source§impl<'de> Deserialize<'de> for GoalCommandResult
impl<'de> Deserialize<'de> for GoalCommandResult
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
impl Eq for GoalCommandResult
Source§impl PartialEq for GoalCommandResult
impl PartialEq for GoalCommandResult
Source§impl Serialize for GoalCommandResult
impl Serialize for GoalCommandResult
impl StructuralPartialEq for GoalCommandResult
Auto Trait Implementations§
impl Forget for GoalCommandResult
impl Freeze for GoalCommandResult
impl Move for GoalCommandResult
impl RefUnwindSafe for GoalCommandResult
impl Send for GoalCommandResult
impl Sync for GoalCommandResult
impl Unpin for GoalCommandResult
impl UnsafeUnpin for GoalCommandResult
impl UnwindSafe for GoalCommandResult
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