Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
Documentation
Offset specification to describe highlighting of document excerpts for rendering search results and recommendations.
See: newHighlight
smart constructor.
Highlight' | |
|
Instances
Eq Highlight Source # | |
Read Highlight Source # | |
Show Highlight Source # | |
Generic Highlight Source # | |
NFData Highlight Source # | |
Defined in Amazonka.Wisdom.Types.Highlight | |
Hashable Highlight Source # | |
Defined in Amazonka.Wisdom.Types.Highlight | |
FromJSON Highlight Source # | |
type Rep Highlight Source # | |
Defined in Amazonka.Wisdom.Types.Highlight type Rep Highlight = D1 ('MetaData "Highlight" "Amazonka.Wisdom.Types.Highlight" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" 'False) (C1 ('MetaCons "Highlight'" 'PrefixI 'True) (S1 ('MetaSel ('Just "endOffsetExclusive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "beginOffsetInclusive") '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:endOffsetExclusive:Highlight'
, highlight_endOffsetExclusive
- The offset for the end of the highlight.
$sel:beginOffsetInclusive:Highlight'
, highlight_beginOffsetInclusive
- The offset for the start of the highlight.