pub struct ExecRequest {
pub prompt: String,
pub overrides: CliOverridesPatch,
}Expand description
Options configuring a single exec request.
Fields§
§prompt: String§overrides: CliOverridesPatchImplementations§
Source§impl ExecRequest
impl ExecRequest
pub fn new(prompt: impl Into<String>) -> Self
pub fn with_overrides(self, overrides: CliOverridesPatch) -> 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 ExecRequest
impl Clone for ExecRequest
Source§fn clone(&self) -> ExecRequest
fn clone(&self) -> ExecRequest
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 ExecRequest
impl RefUnwindSafe for ExecRequest
impl Send for ExecRequest
impl Sync for ExecRequest
impl Unpin for ExecRequest
impl UnsafeUnpin for ExecRequest
impl UnwindSafe for ExecRequest
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