pub struct OpencodeServerOptions {
pub hostname: String,
pub port: u16,
pub timeout: Duration,
pub config: Option<Value>,
pub cli_path: Option<PathBuf>,
pub env: HashMap<String, String>,
pub cwd: Option<PathBuf>,
}Expand description
Options for launching opencode serve.
Fields§
§hostname: StringHostname passed to --hostname.
port: u16Port passed to --port.
timeout: DurationStartup timeout while waiting for server URL log line.
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 OpencodeServerOptions
impl Clone for OpencodeServerOptions
Source§fn clone(&self) -> OpencodeServerOptions
fn clone(&self) -> OpencodeServerOptions
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 OpencodeServerOptions
impl Debug for OpencodeServerOptions
Auto Trait Implementations§
impl Freeze for OpencodeServerOptions
impl RefUnwindSafe for OpencodeServerOptions
impl Send for OpencodeServerOptions
impl Sync for OpencodeServerOptions
impl Unpin for OpencodeServerOptions
impl UnsafeUnpin for OpencodeServerOptions
impl UnwindSafe for OpencodeServerOptions
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