pub struct ExtractorBatch<T> {
pub source: ArtifactFingerprint,
pub outputs: Vec<T>,
}Expand description
Complete transient output owned by one extractor input.
Fields§
§source: ArtifactFingerprintFingerprint that identifies and invalidates this batch.
outputs: Vec<T>Deterministically ordered extracted outputs.
Implementations§
Source§impl<T> ExtractorBatch<T>
impl<T> ExtractorBatch<T>
Sourcepub fn new(source: ArtifactFingerprint, outputs: Vec<T>) -> Self
pub fn new(source: ArtifactFingerprint, outputs: Vec<T>) -> Self
Creates one source-owned extractor batch.
Sourcepub fn key(&self) -> ArtifactKey
pub fn key(&self) -> ArtifactKey
Returns the stable source key for planning and persistence.
Trait Implementations§
Source§impl<T: Clone> Clone for ExtractorBatch<T>
impl<T: Clone> Clone for ExtractorBatch<T>
Source§fn clone(&self) -> ExtractorBatch<T>
fn clone(&self) -> ExtractorBatch<T>
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<T: Debug> Debug for ExtractorBatch<T>
impl<T: Debug> Debug for ExtractorBatch<T>
impl<T: Eq> Eq for ExtractorBatch<T>
Source§impl<T: PartialEq> PartialEq for ExtractorBatch<T>
impl<T: PartialEq> PartialEq for ExtractorBatch<T>
impl<T: PartialEq> StructuralPartialEq for ExtractorBatch<T>
Auto Trait Implementations§
impl<T> Freeze for ExtractorBatch<T>
impl<T> RefUnwindSafe for ExtractorBatch<T>where
T: RefUnwindSafe,
impl<T> Send for ExtractorBatch<T>where
T: Send,
impl<T> Sync for ExtractorBatch<T>where
T: Sync,
impl<T> Unpin for ExtractorBatch<T>where
T: Unpin,
impl<T> UnsafeUnpin for ExtractorBatch<T>
impl<T> UnwindSafe for ExtractorBatch<T>where
T: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.