pub struct ConvertItem {
pub input: String,
pub output: String,
pub source_format: Option<String>,
pub target_format: String,
pub encoding: String,
pub applied: bool,
pub entry_count: Option<usize>,
pub status: &'static str,
pub error: Option<ConvertItemError>,
}Expand description
Per-file conversion record emitted in the data.conversions array
of the JSON envelope.
Field naming follows
openspec/changes/add-machine-readable-output/specs/format-conversion/spec.md.
entry_count is an additive enrichment (subtitle entries serialized
to the output) that consumers MAY ignore on older schema versions.
Fields§
§input: StringSource file path as provided to the converter.
output: StringResolved output file path.
source_format: Option<String>Lowercase source format identifier (e.g. "srt", "ass",
"vtt", "sub"). null when the file failed before parsing.
target_format: StringLowercase target format identifier.
encoding: StringOutput encoding label (e.g. "UTF-8").
applied: boolWhether the conversion was applied to disk.
entry_count: Option<usize>Number of subtitle entries successfully converted, when known.
status: &'static str"ok" or "error".
error: Option<ConvertItemError>Populated only when status == "error".
Trait Implementations§
Source§impl Debug for ConvertItem
impl Debug for ConvertItem
Auto Trait Implementations§
impl Freeze for ConvertItem
impl RefUnwindSafe for ConvertItem
impl Send for ConvertItem
impl Sync for ConvertItem
impl Unpin for ConvertItem
impl UnsafeUnpin for ConvertItem
impl UnwindSafe for ConvertItem
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