pub struct OpencodeClientConfig {
pub base_url: String,
pub directory: Option<String>,
pub headers: HashMap<String, String>,
pub bearer_token: Option<String>,
pub timeout: Duration,
}Expand description
Config for creating OpenCode HTTP client.
Fields§
§base_url: StringBase URL for API requests. Defaults to http://127.0.0.1:4096.
directory: Option<String>Optional project directory mapped to x-opencode-directory header.
headers: HashMap<String, String>Optional default headers.
bearer_token: Option<String>Optional bearer token added as Authorization: Bearer ....
timeout: DurationRequest timeout.
Trait Implementations§
Source§impl Clone for OpencodeClientConfig
impl Clone for OpencodeClientConfig
Source§fn clone(&self) -> OpencodeClientConfig
fn clone(&self) -> OpencodeClientConfig
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 OpencodeClientConfig
impl Debug for OpencodeClientConfig
Auto Trait Implementations§
impl Freeze for OpencodeClientConfig
impl RefUnwindSafe for OpencodeClientConfig
impl Send for OpencodeClientConfig
impl Sync for OpencodeClientConfig
impl Unpin for OpencodeClientConfig
impl UnsafeUnpin for OpencodeClientConfig
impl UnwindSafe for OpencodeClientConfig
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