pub struct CommandCodeConfig {
pub enabled: bool,
pub auth_paths: Option<Vec<PathBuf>>,
}Expand description
Command Code reads the OAuth credential from the official CLI or pi, so it
has no API key of its own. auth_paths overrides that search list for a
non-standard install. It is enabled by default, like OpenAI/Codex; when no
local credential exists the TUI reports that tab as unavailable instead of
silently hiding the provider.
Fields§
§enabled: bool§auth_paths: Option<Vec<PathBuf>>Trait Implementations§
Source§impl Clone for CommandCodeConfig
impl Clone for CommandCodeConfig
Source§impl Debug for CommandCodeConfig
impl Debug for CommandCodeConfig
Source§impl Default for CommandCodeConfig
impl Default for CommandCodeConfig
Source§impl<'de> Deserialize<'de> for CommandCodeConfigwhere
CommandCodeConfig: Default,
impl<'de> Deserialize<'de> for CommandCodeConfigwhere
CommandCodeConfig: Default,
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 CommandCodeConfig
impl RefUnwindSafe for CommandCodeConfig
impl Send for CommandCodeConfig
impl Sync for CommandCodeConfig
impl Unpin for CommandCodeConfig
impl UnsafeUnpin for CommandCodeConfig
impl UnwindSafe for CommandCodeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more