pub struct CopilotClientOptions {
pub cli_path: Option<String>,
pub cli_args: Vec<String>,
pub cwd: Option<String>,
pub port: u16,
pub use_stdio: bool,
pub cli_url: Option<String>,
pub log_level: String,
pub auto_start: bool,
pub auto_restart: bool,
pub env: Option<HashMap<String, String>>,
pub github_token: Option<String>,
pub use_logged_in_user: Option<bool>,
}Expand description
Options for creating a CopilotClient.
Fields§
§cli_path: Option<String>Path to the CLI executable.
cli_args: Vec<String>Extra arguments to pass to the CLI executable.
cwd: Option<String>Working directory for the CLI process.
port: u16Port for the CLI server (TCP mode only).
use_stdio: boolUse stdio transport instead of TCP (default: true).
cli_url: Option<String>URL of an existing Copilot CLI server to connect to over TCP.
log_level: StringLog level for the CLI server.
auto_start: boolAuto-start the CLI server on first use (default: true).
auto_restart: boolAuto-restart the CLI server if it crashes (default: true).
env: Option<HashMap<String, String>>Environment variables to pass to the CLI process.
github_token: Option<String>GitHub token for authentication.
use_logged_in_user: Option<bool>Whether to use the logged-in user for authentication.
Trait Implementations§
Source§impl Clone for CopilotClientOptions
impl Clone for CopilotClientOptions
Source§fn clone(&self) -> CopilotClientOptions
fn clone(&self) -> CopilotClientOptions
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 CopilotClientOptions
impl Debug for CopilotClientOptions
Auto Trait Implementations§
impl Freeze for CopilotClientOptions
impl RefUnwindSafe for CopilotClientOptions
impl Send for CopilotClientOptions
impl Sync for CopilotClientOptions
impl Unpin for CopilotClientOptions
impl UnwindSafe for CopilotClientOptions
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