pub struct TranslateConfig {Show 13 fields
pub source: Option<String>,
pub sources: Option<Vec<String>>,
pub target: Option<String>,
pub provider: Option<String>,
pub model: Option<String>,
pub source_lang: Option<String>,
pub use_tolgee: Option<bool>,
pub target_lang: Option<Vec<String>>,
pub concurrency: Option<usize>,
pub status: Option<Vec<String>>,
pub output_status: Option<String>,
pub input: TranslateInputConfig,
pub output: Option<TranslateOutputScope>,
}Fields§
§source: Option<String>§sources: Option<Vec<String>>§target: Option<String>§provider: Option<String>§model: Option<String>§source_lang: Option<String>§use_tolgee: Option<bool>§target_lang: Option<Vec<String>>§concurrency: Option<usize>§status: Option<Vec<String>>§output_status: Option<String>§input: TranslateInputConfig§output: Option<TranslateOutputScope>Implementations§
Source§impl TranslateConfig
impl TranslateConfig
pub fn resolved_source(&self) -> Option<&str>
pub fn resolved_sources(&self) -> Option<&Vec<String>>
pub fn resolved_source_lang(&self) -> Option<&str>
pub fn resolved_filter_status(&self) -> Option<&Vec<String>>
pub fn resolved_target(&self) -> Option<&str>
pub fn resolved_output_path(&self) -> Option<&str>
pub fn resolved_target_langs(&self) -> Option<&Vec<String>>
pub fn resolved_output_status(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for TranslateConfig
impl Clone for TranslateConfig
Source§fn clone(&self) -> TranslateConfig
fn clone(&self) -> TranslateConfig
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 moreSource§impl Debug for TranslateConfig
impl Debug for TranslateConfig
Source§impl Default for TranslateConfig
impl Default for TranslateConfig
Source§fn default() -> TranslateConfig
fn default() -> TranslateConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TranslateConfig
impl<'de> Deserialize<'de> for TranslateConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TranslateConfig
impl RefUnwindSafe for TranslateConfig
impl Send for TranslateConfig
impl Sync for TranslateConfig
impl Unpin for TranslateConfig
impl UnsafeUnpin for TranslateConfig
impl UnwindSafe for TranslateConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more