pub struct ScanResult {
pub tools: Vec<ParsedToolFile>,
pub warnings: Vec<String>,
}Expand description
Result of scan_tools_directory: the parsed tools plus any non-fatal
drift warnings.
A warning does not fail the scan — it flags a .ts file on disk that was
excluded from tools because the sidecar has no matching entry for it.
Callers that only inspect tools would otherwise have no way to detect
this drift short of tailing server-side tracing output.
Fields§
§tools: Vec<ParsedToolFile>Parsed tools, sorted by name.
warnings: Vec<String>Non-fatal warnings, e.g. .ts files excluded for lacking a sidecar entry.
Trait Implementations§
Source§impl Clone for ScanResult
impl Clone for ScanResult
Source§fn clone(&self) -> ScanResult
fn clone(&self) -> ScanResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScanResult
impl Debug for ScanResult
Source§impl Default for ScanResult
impl Default for ScanResult
Source§fn default() -> ScanResult
fn default() -> ScanResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScanResult
impl RefUnwindSafe for ScanResult
impl Send for ScanResult
impl Sync for ScanResult
impl Unpin for ScanResult
impl UnsafeUnpin for ScanResult
impl UnwindSafe for ScanResult
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