| 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 |
Amazonka.Wisdom.Types.Highlight
Description
Synopsis
Documentation
Offset specification to describe highlighting of document excerpts for rendering search results and recommendations.
See: newHighlight smart constructor.
Constructors
| Highlight' | |
Fields
| |
Instances
| FromJSON Highlight Source # | |
| Generic Highlight Source # | |
| Read Highlight Source # | |
| Show Highlight Source # | |
| NFData Highlight Source # | |
Defined in Amazonka.Wisdom.Types.Highlight | |
| Eq Highlight Source # | |
| Hashable Highlight Source # | |
Defined in Amazonka.Wisdom.Types.Highlight | |
| type Rep Highlight Source # | |
Defined in Amazonka.Wisdom.Types.Highlight type Rep Highlight = D1 ('MetaData "Highlight" "Amazonka.Wisdom.Types.Highlight" "amazonka-wisdom-2.0-D8ZGZ1sJNnDDHDNbH2yubp" 'False) (C1 ('MetaCons "Highlight'" 'PrefixI 'True) (S1 ('MetaSel ('Just "beginOffsetInclusive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "endOffsetExclusive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))) | |
newHighlight :: Highlight Source #
Create a value of Highlight 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:beginOffsetInclusive:Highlight', highlight_beginOffsetInclusive - The offset for the start of the highlight.
$sel:endOffsetExclusive:Highlight', highlight_endOffsetExclusive - The offset for the end of the highlight.