pub struct ConversionResult {
pub success: bool,
pub input_format: String,
pub output_format: String,
pub original_entries: usize,
pub converted_entries: usize,
pub warnings: Vec<String>,
pub errors: Vec<String>,
}Expand description
Result of a subtitle format conversion operation.
Contains detailed information about the conversion process including success status, format information, entry counts, and any issues encountered.
Fields§
§success: boolWhether the conversion completed successfully
input_format: StringInput subtitle format (e.g., “srt”, “ass”)
output_format: StringOutput subtitle format (e.g., “srt”, “ass”)
original_entries: usizeNumber of subtitle entries in the original file
converted_entries: usizeNumber of subtitle entries successfully converted
warnings: Vec<String>Non-fatal warnings encountered during conversion
errors: Vec<String>Errors encountered during conversion
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConversionResult
impl RefUnwindSafe for ConversionResult
impl Send for ConversionResult
impl Sync for ConversionResult
impl Unpin for ConversionResult
impl UnwindSafe for ConversionResult
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