Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data SuggestionTextWithHighlights = SuggestionTextWithHighlights' {
- highlights :: Maybe [SuggestionHighlight]
- text :: Maybe Text
- newSuggestionTextWithHighlights :: SuggestionTextWithHighlights
- suggestionTextWithHighlights_highlights :: Lens' SuggestionTextWithHighlights (Maybe [SuggestionHighlight])
- suggestionTextWithHighlights_text :: Lens' SuggestionTextWithHighlights (Maybe Text)
Documentation
data SuggestionTextWithHighlights Source #
Provides text and information about where to highlight the query suggestion text.
See: newSuggestionTextWithHighlights
smart constructor.
SuggestionTextWithHighlights' | |
|
Instances
newSuggestionTextWithHighlights :: SuggestionTextWithHighlights Source #
Create a value of SuggestionTextWithHighlights
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:highlights:SuggestionTextWithHighlights'
, suggestionTextWithHighlights_highlights
- The beginning and end of the query suggestion text that should be
highlighted.
$sel:text:SuggestionTextWithHighlights'
, suggestionTextWithHighlights_text
- The query suggestion text to display to the user.
suggestionTextWithHighlights_highlights :: Lens' SuggestionTextWithHighlights (Maybe [SuggestionHighlight]) Source #
The beginning and end of the query suggestion text that should be highlighted.
suggestionTextWithHighlights_text :: Lens' SuggestionTextWithHighlights (Maybe Text) Source #
The query suggestion text to display to the user.