pub struct TranslateExecution {
pub args: TranslateArgs,
pub target_language: String,
pub batch_size: usize,
}Expand description
Resolved translate command inputs after CLI/config defaulting.
This struct is filled in by execute before delegating to the
translation engine implemented in the core slice. It is exposed so the
engine slice can consume a stable, validated value type.
Fields§
§args: TranslateArgsValidated CLI arguments.
target_language: StringEffective target language (args.target_language if non-empty,
otherwise crate::config::TranslationConfig::default_target_language).
batch_size: usizeConfigured translation batch size.
Trait Implementations§
Source§impl Clone for TranslateExecution
impl Clone for TranslateExecution
Source§fn clone(&self) -> TranslateExecution
fn clone(&self) -> TranslateExecution
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 TranslateExecution
impl RefUnwindSafe for TranslateExecution
impl Send for TranslateExecution
impl Sync for TranslateExecution
impl Unpin for TranslateExecution
impl UnsafeUnpin for TranslateExecution
impl UnwindSafe for TranslateExecution
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