pub struct TranslateOptions {
pub file: Option<String>,
pub to: Option<String>,
pub provider: Option<String>,
pub model: Option<String>,
pub no_cache: bool,
pub write: bool,
}Expand description
Options for the translate command.
Fields§
§file: Option<String>Input file path (reads from stdin if None).
to: Option<String>Target language code.
provider: Option<String>Provider name.
model: Option<String>Model name.
no_cache: boolWhether to bypass the cache.
write: boolWhether to overwrite the input file with the translation.
Auto Trait Implementations§
impl Freeze for TranslateOptions
impl RefUnwindSafe for TranslateOptions
impl Send for TranslateOptions
impl Sync for TranslateOptions
impl Unpin for TranslateOptions
impl UnwindSafe for TranslateOptions
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