pub struct TranslationResult {
pub subtitle: Subtitle,
pub outcome: TranslationOutcome,
}Expand description
Result returned by the engine after translating a single subtitle file.
Fields§
§subtitle: SubtitleTranslated subtitle in the format-agnostic representation. Use
crate::core::formats::manager::FormatManager to serialize it back
to a format-specific text representation.
outcome: TranslationOutcomeOutcome metadata (terminology map, batch counts, etc.).
Trait Implementations§
Source§impl Clone for TranslationResult
impl Clone for TranslationResult
Source§fn clone(&self) -> TranslationResult
fn clone(&self) -> TranslationResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TranslationResult
impl RefUnwindSafe for TranslationResult
impl Send for TranslationResult
impl Sync for TranslationResult
impl Unpin for TranslationResult
impl UnsafeUnpin for TranslationResult
impl UnwindSafe for TranslationResult
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