macro_rules! impl_content_scanner {
($scanner:ty) => { ... };
}Expand description
Implements the ContentScanner trait for scanners that use default content scanning.
This macro generates a ContentScanner implementation that delegates to ScannerConfig. Use this for scanners that don’t need custom content processing.
§Example
ⓘ
use crate::scanner::{ContentScanner, ScannerConfig};
use crate::{impl_scanner_builder, impl_content_scanner};
pub struct MyScanner {
config: ScannerConfig,
}
impl_scanner_builder!(MyScanner);
impl_content_scanner!(MyScanner);