pub trait IntoMetadata {
// Required method
fn into_metadata(self, counts: FinalCounts) -> Vec<u8> ⓘ;
}Expand description
What a build’s metadata callback may return.
A Vec<u8> is the payload verbatim — the common case (no metadata, or a
payload that carries no counts). DeferredMetadata is a payload that
does carry counts: the callback derives everything it needs while the
source quads are still resident, and returns a finalizer that the writer
calls with the FinalCounts, which only exist once the indexes have
deduplicated the input. Without that second stage a card can only report the
ingested count, which over-reports any input containing duplicates.
Required Methods§
Sourcefn into_metadata(self, counts: FinalCounts) -> Vec<u8> ⓘ
fn into_metadata(self, counts: FinalCounts) -> Vec<u8> ⓘ
Produce the metadata section payload for a file with these counts.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".