pub struct Turn {
pub completed_at: Option<i64>,
pub duration_ms: Option<i64>,
pub error: Option<TurnError>,
pub id: String,
pub items: Vec<ThreadItem>,
pub items_view: Option<TurnItemsView>,
pub root_turn_id: Option<String>,
pub started_at: Option<i64>,
pub status: TurnStatus,
}Fields§
§completed_at: Option<i64>Unix timestamp (in seconds) when the turn completed.
duration_ms: Option<i64>Duration between turn start and completion in milliseconds, if known.
error: Option<TurnError>Error associated with a failed or interrupted turn.
id: StringIdentifier for this turn. Codex-generated turn IDs are UUIDv7.
items: Vec<ThreadItem>Thread items currently included in this turn payload.
items_view: Option<TurnItemsView>Describes how much of items has been loaded for this turn.
root_turn_id: Option<String>ID of the first turn in the chain of work that led to this turn. Pass this as rootTurnId when starting work on behalf of this turn. May be null in older history or a review/start response.
started_at: Option<i64>Unix timestamp (in seconds) when the turn started.
status: TurnStatusTrait Implementations§
Source§impl<'de> Deserialize<'de> for Turn
impl<'de> Deserialize<'de> for Turn
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 StructuralPartialEq for Turn
Auto Trait Implementations§
impl Forget for Turn
impl Freeze for Turn
impl RefUnwindSafe for Turn
impl Send for Turn
impl Sync for Turn
impl Unpin for Turn
impl UnsafeUnpin for Turn
impl UnwindSafe for Turn
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