pub struct ExecServerRequest {
pub listen: Option<String>,
pub working_dir: Option<PathBuf>,
pub overrides: CliOverridesPatch,
}Expand description
Request for codex exec-server.
Fields§
§listen: Option<String>Optional address passed via --listen.
working_dir: Option<PathBuf>Optional working directory override for the spawned process.
overrides: CliOverridesPatchPer-call CLI overrides layered on top of the builder.
Implementations§
Source§impl ExecServerRequest
impl ExecServerRequest
pub fn new() -> Self
Sourcepub fn listen(self, listen: impl Into<String>) -> Self
pub fn listen(self, listen: impl Into<String>) -> Self
Sets the optional address passed via --listen.
Sourcepub fn working_dir(self, dir: impl Into<PathBuf>) -> Self
pub fn working_dir(self, dir: impl Into<PathBuf>) -> Self
Sets the working directory used to resolve relative paths.
Sourcepub fn with_overrides(self, overrides: CliOverridesPatch) -> Self
pub fn with_overrides(self, overrides: CliOverridesPatch) -> Self
Replaces the default CLI overrides for this request.
Sourcepub fn config_override(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn config_override( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Adds a --config key=value override for this request.
Sourcepub fn config_override_raw(self, raw: impl Into<String>) -> Self
pub fn config_override_raw(self, raw: impl Into<String>) -> Self
Adds a raw --config key=value override without validation.
Sourcepub fn profile(self, profile: impl Into<String>) -> Self
pub fn profile(self, profile: impl Into<String>) -> Self
Sets the config profile (--profile) for this request.
Sourcepub fn enable_feature(self, name: impl Into<String>) -> Self
pub fn enable_feature(self, name: impl Into<String>) -> Self
Adds a --enable <feature> toggle for this call.
Sourcepub fn disable_feature(self, name: impl Into<String>) -> Self
pub fn disable_feature(self, name: impl Into<String>) -> Self
Adds a --disable <feature> toggle for this call.
Trait Implementations§
Source§impl Clone for ExecServerRequest
impl Clone for ExecServerRequest
Source§fn clone(&self) -> ExecServerRequest
fn clone(&self) -> ExecServerRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecServerRequest
impl Debug for ExecServerRequest
Source§impl Default for ExecServerRequest
impl Default for ExecServerRequest
Source§impl PartialEq for ExecServerRequest
impl PartialEq for ExecServerRequest
Source§fn eq(&self, other: &ExecServerRequest) -> bool
fn eq(&self, other: &ExecServerRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ExecServerRequest
impl StructuralPartialEq for ExecServerRequest
Auto Trait Implementations§
impl Freeze for ExecServerRequest
impl RefUnwindSafe for ExecServerRequest
impl Send for ExecServerRequest
impl Sync for ExecServerRequest
impl Unpin for ExecServerRequest
impl UnsafeUnpin for ExecServerRequest
impl UnwindSafe for ExecServerRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.