pub struct ContentProvenance {
pub type_rules_fingerprint: u64,
pub options_fingerprint: OptionsFingerprint,
pub analyzers: Vec<(AnalyzerId, AnalyzerVersion)>,
}Expand description
Analyzer/rule/options identity attached to cached and reported content.
Fields§
§type_rules_fingerprint: u64Compiled file-type rule identity.
options_fingerprint: OptionsFingerprintSemantic option identity.
analyzers: Vec<(AnalyzerId, AnalyzerVersion)>Analyzer dialects enabled by the profile.
Implementations§
Source§impl ContentProvenance
impl ContentProvenance
Sourcepub fn for_request(
request: AnalysisRequest,
type_rules_fingerprint: u64,
) -> Self
pub fn for_request( request: AnalysisRequest, type_rules_fingerprint: u64, ) -> Self
Resolve analyzer dialects implied by a request, under a given set of type rules.
The fingerprint is passed rather than read from a global: a caller may run two indexes under different taxonomies in one process, and a record must record the rules that actually produced it.
Trait Implementations§
Source§impl Clone for ContentProvenance
impl Clone for ContentProvenance
Source§impl Debug for ContentProvenance
impl Debug for ContentProvenance
impl Eq for ContentProvenance
Source§impl PartialEq for ContentProvenance
impl PartialEq for ContentProvenance
impl StructuralPartialEq for ContentProvenance
Auto Trait Implementations§
impl Freeze for ContentProvenance
impl RefUnwindSafe for ContentProvenance
impl Send for ContentProvenance
impl Sync for ContentProvenance
impl Unpin for ContentProvenance
impl UnsafeUnpin for ContentProvenance
impl UnwindSafe for ContentProvenance
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