pub struct StoredExtractorBatch {
pub source: ArtifactFingerprint,
pub extractor_version: String,
pub budget_fingerprint: String,
pub source_was_lossy: bool,
pub output_count: u64,
pub payload: Vec<u8>,
}Expand description
Opaque, versioned output owned by one extractor input.
The payload contains contract observations rather than source text. Its schema is owned by the
extractor identified by Self::source and Self::extractor_version.
Fields§
§source: ArtifactFingerprintFingerprint that identifies and invalidates the source-owned output.
extractor_version: StringSemantic version of the extractor payload schema.
budget_fingerprint: StringCanonical fingerprint of the effective extraction budgets.
source_was_lossy: boolWhether invalid UTF-8 input bytes were decoded lossily for text extraction.
output_count: u64Deterministic number of observations encoded in the payload.
payload: Vec<u8>UTF-8 JSON payload encoded as bytes for bounded, lossless persistence.
Trait Implementations§
Source§impl Clone for StoredExtractorBatch
impl Clone for StoredExtractorBatch
Source§fn clone(&self) -> StoredExtractorBatch
fn clone(&self) -> StoredExtractorBatch
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 Debug for StoredExtractorBatch
impl Debug for StoredExtractorBatch
Source§impl<'de> Deserialize<'de> for StoredExtractorBatch
impl<'de> Deserialize<'de> for StoredExtractorBatch
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
impl Eq for StoredExtractorBatch
Source§impl JsonSchema for StoredExtractorBatch
impl JsonSchema for StoredExtractorBatch
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for StoredExtractorBatch
impl PartialEq for StoredExtractorBatch
Source§impl Serialize for StoredExtractorBatch
impl Serialize for StoredExtractorBatch
impl StructuralPartialEq for StoredExtractorBatch
Auto Trait Implementations§
impl Freeze for StoredExtractorBatch
impl RefUnwindSafe for StoredExtractorBatch
impl Send for StoredExtractorBatch
impl Sync for StoredExtractorBatch
impl Unpin for StoredExtractorBatch
impl UnsafeUnpin for StoredExtractorBatch
impl UnwindSafe for StoredExtractorBatch
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