pub struct AppServerProxyRequest {
pub socket_path: Option<PathBuf>,
pub working_dir: Option<PathBuf>,
pub overrides: CliOverridesPatch,
}Expand description
Request for codex app-server proxy.
Fields§
§socket_path: Option<PathBuf>Optional socket path passed via --sock.
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 AppServerProxyRequest
impl AppServerProxyRequest
Sourcepub fn socket_path(self, socket_path: impl Into<PathBuf>) -> Self
pub fn socket_path(self, socket_path: impl Into<PathBuf>) -> Self
Sets the optional socket path passed via --sock.
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 AppServerProxyRequest
impl Clone for AppServerProxyRequest
Source§fn clone(&self) -> AppServerProxyRequest
fn clone(&self) -> AppServerProxyRequest
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 AppServerProxyRequest
impl Debug for AppServerProxyRequest
Source§impl Default for AppServerProxyRequest
impl Default for AppServerProxyRequest
Source§impl PartialEq for AppServerProxyRequest
impl PartialEq for AppServerProxyRequest
Source§fn eq(&self, other: &AppServerProxyRequest) -> bool
fn eq(&self, other: &AppServerProxyRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AppServerProxyRequest
impl StructuralPartialEq for AppServerProxyRequest
Auto Trait Implementations§
impl Freeze for AppServerProxyRequest
impl RefUnwindSafe for AppServerProxyRequest
impl Send for AppServerProxyRequest
impl Sync for AppServerProxyRequest
impl Unpin for AppServerProxyRequest
impl UnsafeUnpin for AppServerProxyRequest
impl UnwindSafe for AppServerProxyRequest
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.