Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets.
Object schema app.bsky.richtext.facet##byteSlice.
Fields
byte_end: integerbyte_start: integer
Summary
Functions
Decode a wire-format map. Delegates to new/1.
Build and validate from a map of attrs (atom or wire string keys).
Build and validate, raising ArgumentError on error.
Encode to the wire-format map.
The lexicon type ID (nsid or nsid#def) this module was generated from.
Types
Functions
Decode a wire-format map. Delegates to new/1.
Build and validate from a map of attrs (atom or wire string keys).
Unknown keys are kept in extra and re-emitted by to_map/1.
Build and validate, raising ArgumentError on error.
Encode to the wire-format map.
@spec type_id() :: String.t()
The lexicon type ID (nsid or nsid#def) this module was generated from.