pub struct SerializedStateAction {
pub state_type_name: String,
pub base_path: String,
pub scope: StateScope,
pub call_id_override: Option<String>,
pub payload: Value,
}Expand description
Serialized state action, sufficient to reconstruct an AnyStateAction.
Captured at the point where a tool completes execution, before the batch
commit. On crash recovery, these entries are deserialized back into
AnyStateAction via StateActionDeserializerRegistry and re-reduced against
the base state.
Fields§
§state_type_name: Stringstd::any::type_name::<S>() — used as the registry lookup key.
base_path: StringS::PATH — the canonical JSON path for this state type.
scope: StateScopeWhether this action targets thread-, run-, or tool-call-level state.
call_id_override: Option<String>When set, overrides the scope context call_id for path resolution.
payload: ValueThe serialized S::Action value.
Trait Implementations§
Source§impl Clone for SerializedStateAction
impl Clone for SerializedStateAction
Source§fn clone(&self) -> SerializedStateAction
fn clone(&self) -> SerializedStateAction
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 SerializedStateAction
impl Debug for SerializedStateAction
Source§impl<'de> Deserialize<'de> for SerializedStateAction
impl<'de> Deserialize<'de> for SerializedStateAction
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 SerializedStateAction
impl RefUnwindSafe for SerializedStateAction
impl Send for SerializedStateAction
impl Sync for SerializedStateAction
impl Unpin for SerializedStateAction
impl UnwindSafe for SerializedStateAction
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