pub struct Builder { /* private fields */ }Expand description
A builder for DetectDominantLanguageInput.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn text(self, input: impl Into<String>) -> Self
pub fn text(self, input: impl Into<String>) -> Self
A UTF-8 text string. The string must contain at least 20 characters. The maximum string size is 100 KB.
sourcepub fn set_text(self, input: Option<String>) -> Self
pub fn set_text(self, input: Option<String>) -> Self
A UTF-8 text string. The string must contain at least 20 characters. The maximum string size is 100 KB.
sourcepub fn build(self) -> Result<DetectDominantLanguageInput, BuildError>
pub fn build(self) -> Result<DetectDominantLanguageInput, BuildError>
Consumes the builder and constructs a DetectDominantLanguageInput.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more