pub struct ResponseStateEvent {
pub event_type: String,
pub item_type: String,
pub output_index: u32,
pub identifier: String,
pub delta: String,
pub value: Option<Value>,
}Expand description
A single state transition event emitted by PIE/PSE for structured outputs.
Fields§
§event_type: StringEvent type (e.g., item_started, content_delta, item_completed)
item_type: StringItem type (e.g., message, tool_call, reasoning)
output_index: u32Output index for this item in the response output array
identifier: StringIdentifier for sub-items or tool names
delta: StringDelta text for streaming content updates
value: Option<Value>Optional final value for completion events
Trait Implementations§
Source§impl Clone for ResponseStateEvent
impl Clone for ResponseStateEvent
Source§fn clone(&self) -> ResponseStateEvent
fn clone(&self) -> ResponseStateEvent
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 ResponseStateEvent
impl Debug for ResponseStateEvent
Source§impl Default for ResponseStateEvent
impl Default for ResponseStateEvent
Source§fn default() -> ResponseStateEvent
fn default() -> ResponseStateEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponseStateEventwhere
ResponseStateEvent: Default,
impl<'de> Deserialize<'de> for ResponseStateEventwhere
ResponseStateEvent: Default,
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 ResponseStateEvent
impl RefUnwindSafe for ResponseStateEvent
impl Send for ResponseStateEvent
impl Sync for ResponseStateEvent
impl Unpin for ResponseStateEvent
impl UnsafeUnpin for ResponseStateEvent
impl UnwindSafe for ResponseStateEvent
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