Struct aws_sdk_kendra::types::TextWithHighlights
source · #[non_exhaustive]pub struct TextWithHighlights {
pub text: Option<String>,
pub highlights: Option<Vec<Highlight>>,
}Expand description
Provides text and information about where to highlight the text.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.text: Option<String>The text to display to the user.
highlights: Option<Vec<Highlight>>The beginning and end of the text that should be highlighted.
Implementations§
source§impl TextWithHighlights
impl TextWithHighlights
sourcepub fn highlights(&self) -> &[Highlight]
pub fn highlights(&self) -> &[Highlight]
The beginning and end of the text that should be highlighted.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .highlights.is_none().
source§impl TextWithHighlights
impl TextWithHighlights
sourcepub fn builder() -> TextWithHighlightsBuilder
pub fn builder() -> TextWithHighlightsBuilder
Creates a new builder-style object to manufacture TextWithHighlights.
Trait Implementations§
source§impl Clone for TextWithHighlights
impl Clone for TextWithHighlights
source§fn clone(&self) -> TextWithHighlights
fn clone(&self) -> TextWithHighlights
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 TextWithHighlights
impl Debug for TextWithHighlights
source§impl PartialEq for TextWithHighlights
impl PartialEq for TextWithHighlights
source§fn eq(&self, other: &TextWithHighlights) -> bool
fn eq(&self, other: &TextWithHighlights) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TextWithHighlights
Auto Trait Implementations§
impl RefUnwindSafe for TextWithHighlights
impl Send for TextWithHighlights
impl Sync for TextWithHighlights
impl Unpin for TextWithHighlights
impl UnwindSafe for TextWithHighlights
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.