1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: social.clippr.feed.defs
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8pub mod clip;
9pub mod get_clips;
10pub mod get_profile_clips;
11pub mod get_profile_tags;
12pub mod get_tag_list;
13pub mod get_tags;
14pub mod tag;
15
16/// A view of a single bookmark (or 'clip').
17#[jacquard_derive::lexicon]
18#[derive(
19 serde::Serialize,
20 serde::Deserialize,
21 Debug,
22 Clone,
23 PartialEq,
24 Eq,
25 jacquard_derive::IntoStatic,
26 bon::Builder
27)]
28#[serde(rename_all = "camelCase")]
29pub struct ClipView<'a> {
30 /// A reference to the actor's profile
31 #[serde(borrow)]
32 pub author: crate::social_clippr::actor::ProfileView<'a>,
33 /// The CID of the clip
34 #[serde(borrow)]
35 pub cid: jacquard_common::types::string::Cid<'a>,
36 /// When the tag was first indexed by the AppView
37 pub indexed_at: jacquard_common::types::string::Datetime,
38 /// The raw record of the clip
39 #[serde(borrow)]
40 pub record: jacquard_common::types::value::Data<'a>,
41 /// The AT-URI of the clip
42 #[serde(borrow)]
43 pub uri: jacquard_common::types::string::AtUri<'a>,
44}
45
46/// A view of a single tag.
47#[jacquard_derive::lexicon]
48#[derive(
49 serde::Serialize,
50 serde::Deserialize,
51 Debug,
52 Clone,
53 PartialEq,
54 Eq,
55 jacquard_derive::IntoStatic,
56 bon::Builder
57)]
58#[serde(rename_all = "camelCase")]
59pub struct TagView<'a> {
60 /// A reference to the actor's profile
61 #[serde(borrow)]
62 pub author: crate::social_clippr::actor::ProfileView<'a>,
63 /// The CID of the tag
64 #[serde(borrow)]
65 pub cid: jacquard_common::types::string::Cid<'a>,
66 /// When the tag was first indexed by the AppView
67 pub indexed_at: jacquard_common::types::string::Datetime,
68 /// The raw record of the tag
69 #[serde(borrow)]
70 pub record: jacquard_common::types::value::Data<'a>,
71 /// The AT-URI to the tag
72 #[serde(borrow)]
73 pub uri: jacquard_common::types::string::AtUri<'a>,
74}