1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: place.stream.richtext.facet
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8///Annotation of a sub-string within rich text.
9#[jacquard_derive::lexicon]
10#[derive(
11 serde::Serialize,
12 serde::Deserialize,
13 Debug,
14 Clone,
15 PartialEq,
16 Eq,
17 jacquard_derive::IntoStatic
18)]
19#[serde(rename_all = "camelCase")]
20pub struct Facet<'a> {
21 #[serde(borrow)]
22 pub features: Vec<FacetFeaturesItem<'a>>,
23 #[serde(borrow)]
24 pub index: crate::app_bsky::richtext::facet::ByteSlice<'a>,
25}
26
27#[jacquard_derive::open_union]
28#[derive(
29 serde::Serialize,
30 serde::Deserialize,
31 Debug,
32 Clone,
33 PartialEq,
34 Eq,
35 jacquard_derive::IntoStatic
36)]
37#[serde(tag = "$type")]
38#[serde(bound(deserialize = "'de: 'a"))]
39pub enum FacetFeaturesItem<'a> {
40 #[serde(rename = "app.bsky.richtext.facet#mention")]
41 FacetMention(Box<crate::app_bsky::richtext::facet::Mention<'a>>),
42 #[serde(rename = "app.bsky.richtext.facet#link")]
43 FacetLink(Box<crate::app_bsky::richtext::facet::Link<'a>>),
44}