pub enum ClientMode {
CopilotCli,
Empty,
}Expand description
Controls SDK defaults for ambient CLI-style behavior.
ClientMode::CopilotCli(default): defaults equivalent to Copilot CLI. Useful when building a coding agent that shares sessions with Copilot CLI. Do not use this mode for server-based multi-user applications — the default coding agent has tools and capabilities that operate across sessions and can access the host OS environment.ClientMode::Empty: disables optional features by default. The app must explicitly opt into anything it needs. Required for any scenario where CLI-like ambient behavior is unsafe (e.g. multi-user servers).
Variants§
CopilotCli
Defaults equivalent to Copilot CLI (the default).
Empty
Disables optional features by default; app must opt in explicitly.
Trait Implementations§
Source§impl Clone for ClientMode
impl Clone for ClientMode
Source§fn clone(&self) -> ClientMode
fn clone(&self) -> ClientMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClientMode
Source§impl Debug for ClientMode
impl Debug for ClientMode
Source§impl Default for ClientMode
impl Default for ClientMode
Source§fn default() -> ClientMode
fn default() -> ClientMode
Returns the “default value” for a type. Read more
impl Eq for ClientMode
Source§impl PartialEq for ClientMode
impl PartialEq for ClientMode
Source§fn eq(&self, other: &ClientMode) -> bool
fn eq(&self, other: &ClientMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClientMode
Auto Trait Implementations§
impl Freeze for ClientMode
impl RefUnwindSafe for ClientMode
impl Send for ClientMode
impl Sync for ClientMode
impl Unpin for ClientMode
impl UnsafeUnpin for ClientMode
impl UnwindSafe for ClientMode
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