pub struct OpencodeTuiOptions {
pub project: Option<String>,
pub model: Option<String>,
pub session: Option<String>,
pub agent: Option<String>,
pub config: Option<Value>,
pub cli_path: Option<PathBuf>,
pub env: HashMap<String, String>,
pub cwd: Option<PathBuf>,
}Expand description
Options for launching opencode TUI.
Fields§
§project: Option<String>Optional project selector passed as --project=....
model: Option<String>Optional model selector passed as --model=....
session: Option<String>Optional session selector passed as --session=....
agent: Option<String>Optional agent selector passed as --agent=....
config: Option<Value>Optional OpenCode config JSON forwarded via OPENCODE_CONFIG_CONTENT.
cli_path: Option<PathBuf>Optional explicit CLI path. If omitted, resolved via which opencode.
env: HashMap<String, String>Optional extra environment variables.
cwd: Option<PathBuf>Optional working directory.
Trait Implementations§
Source§impl Clone for OpencodeTuiOptions
impl Clone for OpencodeTuiOptions
Source§fn clone(&self) -> OpencodeTuiOptions
fn clone(&self) -> OpencodeTuiOptions
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 OpencodeTuiOptions
impl Debug for OpencodeTuiOptions
Source§impl Default for OpencodeTuiOptions
impl Default for OpencodeTuiOptions
Source§fn default() -> OpencodeTuiOptions
fn default() -> OpencodeTuiOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OpencodeTuiOptions
impl RefUnwindSafe for OpencodeTuiOptions
impl Send for OpencodeTuiOptions
impl Sync for OpencodeTuiOptions
impl Unpin for OpencodeTuiOptions
impl UnsafeUnpin for OpencodeTuiOptions
impl UnwindSafe for OpencodeTuiOptions
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