pub struct TurnContext {
pub model: Option<String>,
pub cwd: Option<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
Codex turn_context payload (loosely modeled — many policy fields).
Fields§
§model: Option<String>The model for this turn.
cwd: Option<String>Working directory for this turn.
extra: BTreeMap<String, Value>Everything else (approval policy, sandbox policy, effort, …).
Trait Implementations§
Source§impl Clone for TurnContext
impl Clone for TurnContext
Source§fn clone(&self) -> TurnContext
fn clone(&self) -> TurnContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TurnContext
impl Debug for TurnContext
Source§impl<'de> Deserialize<'de> for TurnContext
impl<'de> Deserialize<'de> for TurnContext
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TurnContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TurnContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TurnContext
impl RefUnwindSafe for TurnContext
impl Send for TurnContext
impl Sync for TurnContext
impl Unpin for TurnContext
impl UnsafeUnpin for TurnContext
impl UnwindSafe for TurnContext
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