pub struct Config {Show 16 fields
pub version: u32,
pub services: Vec<ServiceDef>,
pub bundles: Vec<BundleDef>,
pub git_repositories: Vec<GitRepoDef>,
pub selected_git_repository: Option<String>,
pub git_board_repositories: Option<Vec<String>>,
pub databases: Vec<DatabaseDef>,
pub log_sources: Vec<LogSourceDef>,
pub ssh_servers: Vec<SshServerDef>,
pub github_tokens: Vec<GithubTokenDef>,
pub github_identities: Vec<GithubIdentityDef>,
pub connections: BTreeMap<String, ProviderConnectionDef>,
pub legacy_vercel: Option<ProviderConnectionDef>,
pub preferences: Option<Value>,
pub chat_provider: Option<String>,
pub chat_models: Option<ChatModelsDef>,
}Fields§
§version: u32§services: Vec<ServiceDef>§bundles: Vec<BundleDef>§git_repositories: Vec<GitRepoDef>§selected_git_repository: Option<String>§git_board_repositories: Option<Vec<String>>Ordered repo names pinned to the board; None = show all; Some([]) = board cleared.
databases: Vec<DatabaseDef>§log_sources: Vec<LogSourceDef>§ssh_servers: Vec<SshServerDef>Saved SSH server metadata. Keys remain in ~/.ssh/config / ssh-agent.
github_tokens: Vec<GithubTokenDef>§github_identities: Vec<GithubIdentityDef>§connections: BTreeMap<String, ProviderConnectionDef>How each provider authenticates, keyed by provider id (vercel, …).
A missing entry means that provider is not connected.
legacy_vercel: Option<ProviderConnectionDef>Pre-registry Vercel connection, lifted into connections on load.
preferences: Option<Value>§chat_provider: Option<String>Which CLI the in-dock agent chat drives (“claude” | “codex”). None = never
chosen → fall back to detection. Shares the chatProvider key with Node.
chat_models: Option<ChatModelsDef>Model pins are owned by the shared agent-chat config. The desktop does not apply them yet, but must preserve them when it writes config.json.
Implementations§
Source§impl Config
impl Config
Sourcepub fn public_value(&self) -> Value
pub fn public_value(&self) -> Value
Configuration metadata safe to serialize to the dashboard, as a value.
Convenient, and lossy in one way that matters to nobody who reads it by
key: serde_json::Value sorts object keys, so the field order below
does not survive. Anything rendering this document for comparison
against the reference must serialize Config::public_view instead.
Sourcepub fn public_view(&self) -> impl Serialize + '_
pub fn public_view(&self) -> impl Serialize + '_
Configuration metadata safe to serialize to the dashboard.
Runtime code must continue to use Config so credentials never have to
make a round trip through a webview merely to start a service.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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>,
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> ⓘ
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> ⓘ
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