pub struct ForkCommand { /* private fields */ }Expand description
Fork a previous interactive Codex session, creating a new branch of conversation.
Implementations§
Source§impl ForkCommand
impl ForkCommand
pub fn new() -> Self
Sourcepub fn session_id(self, id: impl Into<String>) -> Self
pub fn session_id(self, id: impl Into<String>) -> Self
Session ID (UUID) to fork.
Sourcepub fn prompt(self, prompt: impl Into<String>) -> Self
pub fn prompt(self, prompt: impl Into<String>) -> Self
Optional prompt to start the forked session with.
pub fn config(self, key_value: impl Into<String>) -> Self
pub fn enable(self, feature: impl Into<String>) -> Self
pub fn disable(self, feature: impl Into<String>) -> Self
pub fn image(self, path: impl Into<String>) -> Self
pub fn model(self, model: impl Into<String>) -> Self
pub fn oss(self) -> Self
pub fn local_provider(self, provider: impl Into<String>) -> Self
pub fn profile(self, profile: impl Into<String>) -> Self
pub fn sandbox(self, sandbox: SandboxMode) -> Self
pub fn approval_policy(self, policy: ApprovalPolicy) -> Self
pub fn full_auto(self) -> Self
pub fn dangerously_bypass_approvals_and_sandbox(self) -> Self
pub fn cd(self, dir: impl Into<String>) -> Self
pub fn add_dir(self, dir: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ForkCommand
impl Clone for ForkCommand
Source§fn clone(&self) -> ForkCommand
fn clone(&self) -> ForkCommand
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 CodexCommand for ForkCommand
impl CodexCommand for ForkCommand
Source§impl Debug for ForkCommand
impl Debug for ForkCommand
Auto Trait Implementations§
impl Freeze for ForkCommand
impl RefUnwindSafe for ForkCommand
impl Send for ForkCommand
impl Sync for ForkCommand
impl Unpin for ForkCommand
impl UnsafeUnpin for ForkCommand
impl UnwindSafe for ForkCommand
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