pub struct TranslationRequest {
pub target_language: String,
pub source_language: Option<String>,
pub glossary_text: Option<String>,
pub context: Option<String>,
pub glossary_entries: Vec<GlossaryEntry>,
}Expand description
Input parameters for translating a single subtitle file.
Fields§
§target_language: StringRequired target language identifier (e.g. zh-TW, ja).
source_language: Option<String>Optional source language hint.
glossary_text: Option<String>Optional UTF-8 glossary text to include in prompts as authoritative guidance.
context: Option<String>Optional inline domain/tone guidance.
glossary_entries: Vec<GlossaryEntry>Pre-parsed user glossary entries (already authoritative).
Trait Implementations§
Source§impl Clone for TranslationRequest
impl Clone for TranslationRequest
Source§fn clone(&self) -> TranslationRequest
fn clone(&self) -> TranslationRequest
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 TranslationRequest
impl RefUnwindSafe for TranslationRequest
impl Send for TranslationRequest
impl Sync for TranslationRequest
impl Unpin for TranslationRequest
impl UnsafeUnpin for TranslationRequest
impl UnwindSafe for TranslationRequest
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