pub struct AstDocConfig {
pub path: PathBuf,
pub output: Option<PathBuf>,
pub max_tokens: usize,
pub core_patterns: Vec<String>,
pub default_strategy: OutputStrategy,
pub include_patterns: Vec<String>,
pub exclude_patterns: Vec<String>,
pub no_git: bool,
pub no_tree: bool,
pub copy: bool,
pub verbose: bool,
}Expand description
Top-level configuration for the ast-doc pipeline.
Fields§
§path: PathBufPath to the project root directory.
output: Option<PathBuf>Output file path (None = stdout).
max_tokens: usizeMaximum token budget for the output.
core_patterns: Vec<String>Glob patterns for core files that should never be degraded.
default_strategy: OutputStrategyDefault output strategy for non-core files.
include_patterns: Vec<String>Glob patterns to include (e.g., “*.rs”).
exclude_patterns: Vec<String>Glob patterns to exclude (e.g., “*.txt”).
no_git: boolSkip git context collection.
no_tree: boolSkip directory tree generation.
copy: boolCopy output to clipboard.
verbose: boolEnable verbose logging.
Trait Implementations§
Source§impl Clone for AstDocConfig
impl Clone for AstDocConfig
Source§fn clone(&self) -> AstDocConfig
fn clone(&self) -> AstDocConfig
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 moreAuto Trait Implementations§
impl Freeze for AstDocConfig
impl RefUnwindSafe for AstDocConfig
impl Send for AstDocConfig
impl Sync for AstDocConfig
impl Unpin for AstDocConfig
impl UnsafeUnpin for AstDocConfig
impl UnwindSafe for AstDocConfig
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,
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