pub struct CopilotConfig {
pub enabled: bool,
pub headless_auth: bool,
pub model: Option<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
GitHub Copilot provider configuration
§Example
"copilot": {
"enabled": true,
"headless_auth": false,
"model": "gpt-4o"
}Fields§
§enabled: boolWhether Copilot provider is enabled
headless_auth: boolPrint login URL to console instead of opening browser
model: Option<String>Default model to use for Copilot (used when clients request the “default” model)
extra: BTreeMap<String, Value>Preserve unknown keys under providers.copilot.
Trait Implementations§
Source§impl Clone for CopilotConfig
impl Clone for CopilotConfig
Source§fn clone(&self) -> CopilotConfig
fn clone(&self) -> CopilotConfig
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 CopilotConfig
impl Debug for CopilotConfig
Source§impl Default for CopilotConfig
impl Default for CopilotConfig
Source§fn default() -> CopilotConfig
fn default() -> CopilotConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CopilotConfig
impl<'de> Deserialize<'de> for CopilotConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CopilotConfig
impl RefUnwindSafe for CopilotConfig
impl Send for CopilotConfig
impl Sync for CopilotConfig
impl Unpin for CopilotConfig
impl UnsafeUnpin for CopilotConfig
impl UnwindSafe for CopilotConfig
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