#[non_exhaustive]pub struct BatchDetectKeyPhrasesItemResultBuilder { /* private fields */ }Expand description
A builder for BatchDetectKeyPhrasesItemResult.
Implementations§
source§impl BatchDetectKeyPhrasesItemResultBuilder
impl BatchDetectKeyPhrasesItemResultBuilder
sourcepub fn set_index(self, input: Option<i32>) -> Self
pub fn set_index(self, input: Option<i32>) -> Self
The zero-based index of the document in the input list.
sourcepub fn get_index(&self) -> &Option<i32>
pub fn get_index(&self) -> &Option<i32>
The zero-based index of the document in the input list.
sourcepub fn key_phrases(self, input: KeyPhrase) -> Self
pub fn key_phrases(self, input: KeyPhrase) -> Self
Appends an item to key_phrases.
To override the contents of this collection use set_key_phrases.
One or more KeyPhrase objects, one for each key phrase detected in the document.
sourcepub fn set_key_phrases(self, input: Option<Vec<KeyPhrase>>) -> Self
pub fn set_key_phrases(self, input: Option<Vec<KeyPhrase>>) -> Self
One or more KeyPhrase objects, one for each key phrase detected in the document.
sourcepub fn get_key_phrases(&self) -> &Option<Vec<KeyPhrase>>
pub fn get_key_phrases(&self) -> &Option<Vec<KeyPhrase>>
One or more KeyPhrase objects, one for each key phrase detected in the document.
sourcepub fn build(self) -> BatchDetectKeyPhrasesItemResult
pub fn build(self) -> BatchDetectKeyPhrasesItemResult
Consumes the builder and constructs a BatchDetectKeyPhrasesItemResult.
Trait Implementations§
source§impl Clone for BatchDetectKeyPhrasesItemResultBuilder
impl Clone for BatchDetectKeyPhrasesItemResultBuilder
source§fn clone(&self) -> BatchDetectKeyPhrasesItemResultBuilder
fn clone(&self) -> BatchDetectKeyPhrasesItemResultBuilder
Returns a copy 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 Default for BatchDetectKeyPhrasesItemResultBuilder
impl Default for BatchDetectKeyPhrasesItemResultBuilder
source§fn default() -> BatchDetectKeyPhrasesItemResultBuilder
fn default() -> BatchDetectKeyPhrasesItemResultBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for BatchDetectKeyPhrasesItemResultBuilder
impl PartialEq for BatchDetectKeyPhrasesItemResultBuilder
source§fn eq(&self, other: &BatchDetectKeyPhrasesItemResultBuilder) -> bool
fn eq(&self, other: &BatchDetectKeyPhrasesItemResultBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BatchDetectKeyPhrasesItemResultBuilder
Auto Trait Implementations§
impl RefUnwindSafe for BatchDetectKeyPhrasesItemResultBuilder
impl Send for BatchDetectKeyPhrasesItemResultBuilder
impl Sync for BatchDetectKeyPhrasesItemResultBuilder
impl Unpin for BatchDetectKeyPhrasesItemResultBuilder
impl UnwindSafe for BatchDetectKeyPhrasesItemResultBuilder
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> 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>
Creates a shared type from an unshared type.