pub struct UnarchiveCommand { /* private fields */ }Expand description
Unarchive a previously archived session (codex unarchive <SESSION>).
Implementations§
Source§impl UnarchiveCommand
impl UnarchiveCommand
Sourcepub fn new(session: impl Into<String>) -> Self
pub fn new(session: impl Into<String>) -> Self
Create an unarchive command targeting the given session id or name.
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 UnarchiveCommand
impl Clone for UnarchiveCommand
Source§impl CodexCommand for UnarchiveCommand
impl CodexCommand for UnarchiveCommand
Auto Trait Implementations§
impl Freeze for UnarchiveCommand
impl RefUnwindSafe for UnarchiveCommand
impl Send for UnarchiveCommand
impl Sync for UnarchiveCommand
impl Unpin for UnarchiveCommand
impl UnsafeUnpin for UnarchiveCommand
impl UnwindSafe for UnarchiveCommand
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