pub struct TalonConfig {Show 14 fields
pub vault_path: PathBuf,
pub db_path: PathBuf,
pub config_file_path: Option<PathBuf>,
pub include_patterns: Vec<String>,
pub ignore_patterns: Vec<String>,
pub credentials: CredentialsConfig,
pub embedding: EmbeddingConfig,
pub rerank: RerankConfig,
pub chat: ChatSection,
pub mcp: McpConfig,
pub scopes: ScopesConfig,
pub search: SearchConfig,
pub inspect: InspectConfig,
pub chunker: ChunkerConfig,
}Expand description
Full Talon runtime configuration.
Fields§
§vault_path: PathBufHost or standalone vault path.
db_path: PathBufSQLite index path.
config_file_path: Option<PathBuf>Path to the loaded config file (not serialized; injected at load time).
include_patterns: Vec<String>Glob-style include patterns.
ignore_patterns: Vec<String>Glob-style ignore patterns.
credentials: CredentialsConfigNamed API credentials referenced by capability blocks.
embedding: EmbeddingConfigEmbedding endpoint configuration.
rerank: RerankConfigRerank endpoint configuration.
chat: ChatSectionChat endpoints for expansion and ask.
mcp: McpConfigMCP runtime settings.
scopes: ScopesConfigNamed scopes for vault partitioning and ranking.
search: SearchConfigSearch defaults and cache/client tunables.
inspect: InspectConfigLint settings (global ignore globs, etc.).
chunker: ChunkerConfigChunker settings from the [indexer] table.
Implementations§
Source§impl TalonConfig
impl TalonConfig
Sourcepub fn vault_path(&self) -> &Path
pub fn vault_path(&self) -> &Path
Returns the configured vault path.
Sourcepub fn resolve_scope(&self, path: &Path) -> ScopeResolution
pub fn resolve_scope(&self, path: &Path) -> ScopeResolution
Returns the resolved scope for a file path.
Walks scopes in declaration order; first match wins. Returns the default scope if no scope matches.
Sourcepub fn resolve_scope_name(&self, path: &Path) -> Option<&str>
pub fn resolve_scope_name(&self, path: &Path) -> Option<&str>
Returns the name of the scope this path resolves to, or None for the
synthetic unscoped bucket.
Sourcepub fn inspect_excluded(&self, path: &Path) -> bool
pub fn inspect_excluded(&self, path: &Path) -> bool
Returns true when path should be excluded from inspect findings.
Excludes paths that are either (1) in a scope with inspect = false, or
(2) matched by any glob in [inspect].ignore. The global ignore list takes
precedence — even paths in inspect = true scopes are excluded if they
match an ignore glob. Excluded paths remain in the index and continue
to satisfy link-target resolution.
Sourcepub fn default_scope_names(&self) -> Vec<&String>
pub fn default_scope_names(&self) -> Vec<&String>
Returns the set of scope names that are in the default search set.
Trait Implementations§
Source§impl Clone for TalonConfig
impl Clone for TalonConfig
Source§fn clone(&self) -> TalonConfig
fn clone(&self) -> TalonConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TalonConfig
impl Debug for TalonConfig
Source§impl<'de> Deserialize<'de> for TalonConfig
impl<'de> Deserialize<'de> for TalonConfig
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>,
Source§impl PartialEq for TalonConfig
impl PartialEq for TalonConfig
Source§fn eq(&self, other: &TalonConfig) -> bool
fn eq(&self, other: &TalonConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for TalonConfig
impl Serialize for TalonConfig
impl Eq for TalonConfig
impl StructuralPartialEq for TalonConfig
Auto Trait Implementations§
impl Freeze for TalonConfig
impl RefUnwindSafe for TalonConfig
impl Send for TalonConfig
impl Sync for TalonConfig
impl Unpin for TalonConfig
impl UnsafeUnpin for TalonConfig
impl UnwindSafe for TalonConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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