pub struct ScanResponse {
pub api_version: String,
pub root: String,
pub directory_count: usize,
pub directories: Vec<ScannedDirectory>,
pub symlinks: Vec<ScanSymlink>,
pub naming: ScanNaming,
pub recurring_filenames: Vec<RecurringFilename>,
pub norm_coverage: NormCoverage,
}Expand description
Versioned deterministic structural-scan response.
Fields§
§api_version: StringVersion of the scan response protocol.
root: StringRoot marker for every portable path in the response.
directory_count: usizeNumber of traversed directories.
directories: Vec<ScannedDirectory>Traversed directories ordered by portable path.
symlinks: Vec<ScanSymlink>Untraversed symbolic links ordered by portable path.
naming: ScanNamingDeterministic naming-style counts.
recurring_filenames: Vec<RecurringFilename>Recurring filenames ordered by count descending and name ascending.
norm_coverage: NormCoverageAggregate convention-file coverage.
Implementations§
Source§impl ScanResponse
impl ScanResponse
Sourcepub fn new(
observations: Vec<DirectoryObservation>,
symlinks: Vec<ScanSymlink>,
) -> Self
pub fn new( observations: Vec<DirectoryObservation>, symlinks: Vec<ScanSymlink>, ) -> Self
Aggregate explicit traversal observations into the versioned response.
Trait Implementations§
Source§impl Clone for ScanResponse
impl Clone for ScanResponse
Source§impl Debug for ScanResponse
impl Debug for ScanResponse
Source§impl<'de> Deserialize<'de> for ScanResponse
impl<'de> Deserialize<'de> for ScanResponse
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ScanResponse
impl PartialEq for ScanResponse
Source§impl Serialize for ScanResponse
impl Serialize for ScanResponse
impl StructuralPartialEq for ScanResponse
Auto Trait Implementations§
impl Freeze for ScanResponse
impl RefUnwindSafe for ScanResponse
impl Send for ScanResponse
impl Sync for ScanResponse
impl Unpin for ScanResponse
impl UnsafeUnpin for ScanResponse
impl UnwindSafe for ScanResponse
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