pub struct StateTransition {
pub entity_kind: TargetCategory,
pub entity_id: Option<String>,
pub from_state: StateName,
pub to_state: StateName,
pub reason: Option<String>,
pub trigger: Option<ActionName>,
}Expand description
Typed description of an entity moving from one state to another.
Fields§
§entity_kind: TargetCategoryStable category describing what changed, such as task or subagent.
entity_id: Option<String>Optional caller-owned identifier for the entity that changed.
from_state: StateNamePrevious stable state label.
to_state: StateNameNew stable state label.
reason: Option<String>Optional human-readable explanation for why the transition occurred.
trigger: Option<ActionName>Optional action or event name that triggered the transition.
Trait Implementations§
Source§impl Clone for StateTransition
impl Clone for StateTransition
Source§fn clone(&self) -> StateTransition
fn clone(&self) -> StateTransition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StateTransition
impl Debug for StateTransition
Source§impl<'de> Deserialize<'de> for StateTransition
impl<'de> Deserialize<'de> for StateTransition
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
Source§impl PartialEq for StateTransition
impl PartialEq for StateTransition
Source§impl Serialize for StateTransition
impl Serialize for StateTransition
impl Eq for StateTransition
impl StructuralPartialEq for StateTransition
Auto Trait Implementations§
impl Freeze for StateTransition
impl RefUnwindSafe for StateTransition
impl Send for StateTransition
impl Sync for StateTransition
impl Unpin for StateTransition
impl UnsafeUnpin for StateTransition
impl UnwindSafe for StateTransition
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