pub struct AnalysisContext {
pub input: String,
pub shell: ShellType,
pub scan_context: ScanContext,
pub raw_bytes: Option<Vec<u8>>,
pub interactive: bool,
pub cwd: Option<String>,
pub file_path: Option<PathBuf>,
pub repo_root: Option<String>,
pub is_config_override: bool,
pub clipboard_html: Option<String>,
}Expand description
Analysis context passed through the pipeline.
Fields§
§input: String§shell: ShellType§scan_context: ScanContext§raw_bytes: Option<Vec<u8>>§interactive: bool§cwd: Option<String>§file_path: Option<PathBuf>File path being scanned (only populated for ScanContext::FileScan).
repo_root: Option<String>Only populated for ScanContext::FileScan. When None, configfile checks use
file_path’s parent as implicit repo root.
is_config_override: boolTrue when file_path was explicitly provided by the user as a config file.
clipboard_html: Option<String>Clipboard HTML content for rich-text paste analysis.
Only populated when tirith paste --html <path> is used.
Auto Trait Implementations§
impl Freeze for AnalysisContext
impl RefUnwindSafe for AnalysisContext
impl Send for AnalysisContext
impl Sync for AnalysisContext
impl Unpin for AnalysisContext
impl UnsafeUnpin for AnalysisContext
impl UnwindSafe for AnalysisContext
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> 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