pub struct TranslationOptionsBuilder { /* private fields */ }
Expand description
Builder for TranslationOptions
.
Implementations§
Source§impl TranslationOptionsBuilder
impl TranslationOptionsBuilder
pub fn source_lang<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn target_lang<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn terms<VALUE: Into<Vec<Term>>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<TranslationOptions, TranslationOptionsBuilderError>
pub fn build( &self, ) -> Result<TranslationOptions, TranslationOptionsBuilderError>
Trait Implementations§
Source§impl Clone for TranslationOptionsBuilder
impl Clone for TranslationOptionsBuilder
Source§fn clone(&self) -> TranslationOptionsBuilder
fn clone(&self) -> TranslationOptionsBuilder
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 TranslationOptionsBuilder
impl RefUnwindSafe for TranslationOptionsBuilder
impl Send for TranslationOptionsBuilder
impl Sync for TranslationOptionsBuilder
impl Unpin for TranslationOptionsBuilder
impl UnwindSafe for TranslationOptionsBuilder
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