#[non_exhaustive]pub struct CodecAuditRow {
pub codec_id: String,
pub codec_version: String,
pub accepted_mime: String,
pub advertised: CodecCapabilitySet,
pub delivered: CodecCapabilitySet,
pub text_origin: TextOrigin,
pub codec_output_schema_version: u16,
pub options_hash_hex: Option<String>,
pub engine_provenance: Option<String>,
pub extraction_density_policy: ExtractionDensityPolicy,
}Expand description
Metadata-only audit row emitted by a document codec.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.codec_id: StringStable codec id, such as gaze.codec.tesseract.
codec_version: StringAdapter crate version, distinct from engine provenance.
accepted_mime: StringAccepted MIME type for the decode.
advertised: CodecCapabilitySetCapabilities advertised by the codec.
delivered: CodecCapabilitySetCapabilities delivered for this decode.
text_origin: TextOriginText provenance reported by the codec.
codec_output_schema_version: u16Codec-output schema version, decoupled from bundle schema version.
options_hash_hex: Option<String>Hash of canonical codec options, never the options themselves.
engine_provenance: Option<String>Engine provenance string, without paths or raw source text.
extraction_density_policy: ExtractionDensityPolicyExtraction density policy declared by the codec for this MIME.
Implementations§
Source§impl CodecAuditRow
impl CodecAuditRow
Sourcepub fn new(
codec_id: impl Into<String>,
codec_version: impl Into<String>,
accepted_mime: impl Into<String>,
text_origin: TextOrigin,
) -> CodecAuditRow
pub fn new( codec_id: impl Into<String>, codec_version: impl Into<String>, accepted_mime: impl Into<String>, text_origin: TextOrigin, ) -> CodecAuditRow
Builds a metadata-only codec audit row.
Trait Implementations§
Source§impl Clone for CodecAuditRow
impl Clone for CodecAuditRow
Source§fn clone(&self) -> CodecAuditRow
fn clone(&self) -> CodecAuditRow
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 CodecAuditRow
impl Debug for CodecAuditRow
Source§impl<'de> Deserialize<'de> for CodecAuditRow
impl<'de> Deserialize<'de> for CodecAuditRow
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CodecAuditRow, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CodecAuditRow, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CodecAuditRow
impl PartialEq for CodecAuditRow
Source§fn eq(&self, other: &CodecAuditRow) -> bool
fn eq(&self, other: &CodecAuditRow) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CodecAuditRow
impl Serialize for CodecAuditRow
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CodecAuditRow
Auto Trait Implementations§
impl Freeze for CodecAuditRow
impl RefUnwindSafe for CodecAuditRow
impl Send for CodecAuditRow
impl Sync for CodecAuditRow
impl Unpin for CodecAuditRow
impl UnsafeUnpin for CodecAuditRow
impl UnwindSafe for CodecAuditRow
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