pub struct DefaultsConfig {
pub refresh_hours: u32,
pub max_archives: usize,
pub fetch_enabled: bool,
pub follow_links: FollowLinks,
pub allowlist: Vec<String>,
pub filter_non_english: bool,
}Expand description
Default settings that apply to all sources unless overridden.
These settings control fetching behavior, caching policies, and link following rules.
Fields§
§refresh_hours: u32How often to refresh cached content (in hours).
Sources are only re-fetched if they haven’t been updated within this interval. Set to 0 to always fetch on access.
max_archives: usizeMaximum number of archived versions to keep per source.
When a source is updated, the previous version is archived. This setting controls how many historical versions to retain for diff generation.
fetch_enabled: boolWhether fetching from remote sources is enabled.
When disabled, only locally cached content is used. Useful for offline work or environments with restricted network access.
follow_links: FollowLinksPolicy for following links in llms.txt files.
Controls whether and which external links should be followed when processing llms.txt files that contain references to other documentation sources.
allowlist: Vec<String>Domains allowed for link following.
Only used when follow_links is set to Allowlist. Links to domains
not in this list will be ignored.
filter_non_english: boolDefault language filtering behavior.
When true, non-English content is filtered during document processing.
When false, all content is retained regardless of language.
Defaults to true for backward compatibility.
Trait Implementations§
Source§impl Clone for DefaultsConfig
impl Clone for DefaultsConfig
Source§fn clone(&self) -> DefaultsConfig
fn clone(&self) -> DefaultsConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DefaultsConfig
impl Debug for DefaultsConfig
Source§impl<'de> Deserialize<'de> for DefaultsConfig
impl<'de> Deserialize<'de> for DefaultsConfig
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>,
Auto Trait Implementations§
impl Freeze for DefaultsConfig
impl RefUnwindSafe for DefaultsConfig
impl Send for DefaultsConfig
impl Sync for DefaultsConfig
impl Unpin for DefaultsConfig
impl UnwindSafe for DefaultsConfig
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<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