pub struct ResumeRequest {
pub selector: ResumeSelector,
pub prompt: Option<String>,
pub idle_timeout: Option<Duration>,
pub output_last_message: Option<PathBuf>,
pub output_schema: Option<PathBuf>,
pub json_event_log: Option<PathBuf>,
pub overrides: CliOverridesPatch,
}Expand description
Options configuring a streaming resume invocation.
Fields§
§selector: ResumeSelector§prompt: Option<String>§idle_timeout: Option<Duration>§output_last_message: Option<PathBuf>§output_schema: Option<PathBuf>§json_event_log: Option<PathBuf>§overrides: CliOverridesPatchImplementations§
Source§impl ResumeRequest
impl ResumeRequest
pub fn new(selector: ResumeSelector) -> Self
pub fn with_id(id: impl Into<String>) -> Self
pub fn last() -> Self
pub fn all() -> Self
pub fn prompt(self, prompt: impl Into<String>) -> Self
pub fn idle_timeout(self, idle_timeout: Duration) -> Self
pub fn config_override( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
pub fn config_override_raw(self, raw: impl Into<String>) -> Self
pub fn profile(self, profile: impl Into<String>) -> Self
pub fn oss(self, enable: bool) -> Self
pub fn enable_feature(self, name: impl Into<String>) -> Self
pub fn disable_feature(self, name: impl Into<String>) -> Self
pub fn search(self, enable: bool) -> Self
Trait Implementations§
Source§impl Clone for ResumeRequest
impl Clone for ResumeRequest
Source§fn clone(&self) -> ResumeRequest
fn clone(&self) -> ResumeRequest
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 moreAuto Trait Implementations§
impl Freeze for ResumeRequest
impl RefUnwindSafe for ResumeRequest
impl Send for ResumeRequest
impl Sync for ResumeRequest
impl Unpin for ResumeRequest
impl UnsafeUnpin for ResumeRequest
impl UnwindSafe for ResumeRequest
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