pub struct Codex;Expand description
OpenAI Codex CLI (codex).
Trait Implementations§
impl Copy for Codex
Source§impl Harness for Codex
impl Harness for Codex
Source§fn id(&self) -> &str
fn id(&self) -> &str
The harness’s id, e.g.
claude: the name users give, and {harness}
in a hook command.Source§fn program(&self) -> Option<&str>
fn program(&self) -> Option<&str>
The program that runs the harness, e.g.
claude, looked for on
PATH to tell whether the user has it; None when it has none.Source§fn claude_tool(&self, call: &ToolCall) -> ToolCall
fn claude_tool(&self, call: &ToolCall) -> ToolCall
call, one of its tool calls, as Claude Code would name it and give
its input (KIT-11_AC-9). By default, named by its kind.Source§fn render(&self, integration: &Integration, cx: &Context) -> Result<Vec<Part>>
fn render(&self, integration: &Integration, cx: &Context) -> Result<Vec<Part>>
The parts for
integration’s items at cx, at most one per item,
each named by its item (Item::as_str). An item the harness
cannot take at the scope has no part.Source§fn reads(&self, item: Item, cx: &Context) -> Result<Reads>
fn reads(&self, item: Item, cx: &Context) -> Result<Reads>
The locations it loads for
item at cx: those it always loads
(which must include where it renders the item) and those it may
load.Source§fn notes(&self, cx: &Context, parts: &[PartResult]) -> Vec<String>
fn notes(&self, cx: &Context, parts: &[PartResult]) -> Vec<String>
What the user still has to do after an install, from its parts’
results, e.g. trust the folder.
Source§fn hook_events(&self) -> &[Event]
fn hook_events(&self) -> &[Event]
The hook events it runs commands for: every
Event unless it says
otherwise.Auto Trait Implementations§
impl Freeze for Codex
impl RefUnwindSafe for Codex
impl Send for Codex
impl Sync for Codex
impl Unpin for Codex
impl UnsafeUnpin for Codex
impl UnwindSafe for Codex
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