pub struct UpdateCommand { /* private fields */ }Expand description
Update Codex to the latest version.
Wraps codex update.
Implementations§
Source§impl UpdateCommand
impl UpdateCommand
Sourcepub fn config(self, key_value: impl Into<String>) -> Self
pub fn config(self, key_value: impl Into<String>) -> Self
Override a config key (-c key=value). May be called multiple times.
Sourcepub fn enable(self, feature: impl Into<String>) -> Self
pub fn enable(self, feature: impl Into<String>) -> Self
Enable an optional feature flag (--enable <feature>).
Sourcepub fn disable(self, feature: impl Into<String>) -> Self
pub fn disable(self, feature: impl Into<String>) -> Self
Disable an optional feature flag (--disable <feature>).
Sourcepub fn retry(self, policy: RetryPolicy) -> Self
pub fn retry(self, policy: RetryPolicy) -> Self
Override the retry policy for this command.
Trait Implementations§
Source§impl Clone for UpdateCommand
impl Clone for UpdateCommand
Source§impl CodexCommand for UpdateCommand
impl CodexCommand for UpdateCommand
Source§impl Debug for UpdateCommand
impl Debug for UpdateCommand
Auto Trait Implementations§
impl Forget for UpdateCommand
impl Freeze for UpdateCommand
impl Move for UpdateCommand
impl RefUnwindSafe for UpdateCommand
impl Send for UpdateCommandwhere
RawVecInner: Send,
impl Sync for UpdateCommandwhere
RawVecInner: Sync,
impl Unpin for UpdateCommand
impl UnsafeUnpin for UpdateCommandwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<i32>: UnsafeUnpin,
impl UnwindSafe for UpdateCommandwhere
RawVecInner: UnwindSafe,
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