pub struct CodexOptions {
pub codex_path_override: Option<String>,
pub base_url: Option<String>,
pub api_key: Option<String>,
pub config: Option<CodexConfigObject>,
pub env: Option<HashMap<String, String>>,
}Expand description
Options for constructing a crate::Codex client.
Fields§
§codex_path_override: Option<String>Absolute path to the codex executable.
When omitted, the SDK searches PATH, local node_modules, vendor
binaries, and common global install locations.
base_url: Option<String>Overrides OPENAI_BASE_URL for Codex CLI requests.
api_key: Option<String>Overrides CODEX_API_KEY for Codex CLI requests.
config: Option<CodexConfigObject>Additional --config key=value overrides for the Codex CLI.
env: Option<HashMap<String, String>>Environment variables passed to the Codex CLI process.
When provided, the SDK does not inherit std::env.
Trait Implementations§
Source§impl Clone for CodexOptions
impl Clone for CodexOptions
Source§fn clone(&self) -> CodexOptions
fn clone(&self) -> CodexOptions
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 moreSource§impl Debug for CodexOptions
impl Debug for CodexOptions
Source§impl Default for CodexOptions
impl Default for CodexOptions
Source§fn default() -> CodexOptions
fn default() -> CodexOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CodexOptions
impl RefUnwindSafe for CodexOptions
impl Send for CodexOptions
impl Sync for CodexOptions
impl Unpin for CodexOptions
impl UnsafeUnpin for CodexOptions
impl UnwindSafe for CodexOptions
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