pub struct ConversionReport {
pub source_language: String,
pub language_auto_detected: bool,
pub populated_sections: Vec<String>,
pub empty_sections: Vec<String>,
pub standardization_notes: Vec<String>,
pub warnings: Vec<String>,
pub compliance_diff: Option<ComplianceDiffReport>,
}Expand description
Structured report produced alongside every to-json conversion.
Describes what was extracted, what was missing, and any normalisations applied to meet the JIS Z 7253 / MHLW standard.
The report is serde-serialisable so it can be written as JSON by the CLI
and consumed as a structured value by web-app / API callers.
Fields§
§source_language: StringBCP-47 tag of the detected or user-specified source language
(e.g. "ja", "en", "zh-CN", "zh-TW").
language_auto_detected: booltrue if the language was inferred from text content rather than
supplied explicitly via --lang / ConvertConfig::source_language.
populated_sections: Vec<String>MHLW section keys that contain at least one extracted value.
empty_sections: Vec<String>MHLW section keys for which no data was found.
standardization_notes: Vec<String>Notes explaining how source values were normalised to conform to the current JIS Z 7253 / MHLW standard.
Example: section heading terminology updated in JIS Z 7253:2019.
warnings: Vec<String>Validation warnings emitted by the MHLW schema validator.
compliance_diff: Option<ComplianceDiffReport>Country-specific compliance gap report, present when a source country is known.
Implementations§
Trait Implementations§
Source§impl Clone for ConversionReport
impl Clone for ConversionReport
Source§fn clone(&self) -> ConversionReport
fn clone(&self) -> ConversionReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConversionReport
impl Debug for ConversionReport
Source§impl Default for ConversionReport
impl Default for ConversionReport
Source§fn default() -> ConversionReport
fn default() -> ConversionReport
Source§impl<'de> Deserialize<'de> for ConversionReport
impl<'de> Deserialize<'de> for ConversionReport
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>,
Auto Trait Implementations§
impl Freeze for ConversionReport
impl RefUnwindSafe for ConversionReport
impl Send for ConversionReport
impl Sync for ConversionReport
impl Unpin for ConversionReport
impl UnsafeUnpin for ConversionReport
impl UnwindSafe for ConversionReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more