pub struct Builder { /* private fields */ }Expand description
A builder for BatchDetectDominantLanguageInput.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn text_list(self, input: impl Into<String>) -> Self
pub fn text_list(self, input: impl Into<String>) -> Self
Appends an item to text_list.
To override the contents of this collection use set_text_list.
A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. Each document should contain at least 20 characters. The maximum size of each document is 5 KB.
sourcepub fn set_text_list(self, input: Option<Vec<String>>) -> Self
pub fn set_text_list(self, input: Option<Vec<String>>) -> Self
A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. Each document should contain at least 20 characters. The maximum size of each document is 5 KB.
sourcepub fn build(self) -> Result<BatchDetectDominantLanguageInput, BuildError>
pub fn build(self) -> Result<BatchDetectDominantLanguageInput, BuildError>
Consumes the builder and constructs a BatchDetectDominantLanguageInput.
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