Struct aws_sdk_qconnect::types::builders::DocumentTextBuilder
source · #[non_exhaustive]pub struct DocumentTextBuilder { /* private fields */ }Expand description
A builder for DocumentText.
Implementations§
source§impl DocumentTextBuilder
impl DocumentTextBuilder
sourcepub fn highlights(self, input: Highlight) -> Self
pub fn highlights(self, input: Highlight) -> Self
Appends an item to highlights.
To override the contents of this collection use set_highlights.
Highlights in the document text.
sourcepub fn set_highlights(self, input: Option<Vec<Highlight>>) -> Self
pub fn set_highlights(self, input: Option<Vec<Highlight>>) -> Self
Highlights in the document text.
sourcepub fn get_highlights(&self) -> &Option<Vec<Highlight>>
pub fn get_highlights(&self) -> &Option<Vec<Highlight>>
Highlights in the document text.
sourcepub fn build(self) -> DocumentText
pub fn build(self) -> DocumentText
Consumes the builder and constructs a DocumentText.
Trait Implementations§
source§impl Clone for DocumentTextBuilder
impl Clone for DocumentTextBuilder
source§fn clone(&self) -> DocumentTextBuilder
fn clone(&self) -> DocumentTextBuilder
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 Debug for DocumentTextBuilder
impl Debug for DocumentTextBuilder
source§impl Default for DocumentTextBuilder
impl Default for DocumentTextBuilder
source§fn default() -> DocumentTextBuilder
fn default() -> DocumentTextBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DocumentTextBuilder
impl PartialEq for DocumentTextBuilder
source§fn eq(&self, other: &DocumentTextBuilder) -> bool
fn eq(&self, other: &DocumentTextBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DocumentTextBuilder
Auto Trait Implementations§
impl RefUnwindSafe for DocumentTextBuilder
impl Send for DocumentTextBuilder
impl Sync for DocumentTextBuilder
impl Unpin for DocumentTextBuilder
impl UnwindSafe for DocumentTextBuilder
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.