1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: blue.rito.feed.bookmark
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8#[jacquard_derive::lexicon]
9#[derive(
10 serde::Serialize,
11 serde::Deserialize,
12 Debug,
13 Clone,
14 PartialEq,
15 Eq,
16 jacquard_derive::IntoStatic
17)]
18#[serde(rename_all = "camelCase")]
19pub struct Locale<'a> {
20 ///URI's comment. It can use GitHub Flavored Markdown.
21 #[serde(skip_serializing_if = "std::option::Option::is_none")]
22 #[serde(borrow)]
23 pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
24 ///Comments Language
25 #[serde(borrow)]
26 pub lang: jacquard_common::CowStr<'a>,
27 ///URI's title
28 #[serde(borrow)]
29 pub title: jacquard_common::CowStr<'a>,
30}
31
32///Records a bookmark.
33#[jacquard_derive::lexicon]
34#[derive(
35 serde::Serialize,
36 serde::Deserialize,
37 Debug,
38 Clone,
39 PartialEq,
40 Eq,
41 jacquard_derive::IntoStatic
42)]
43#[serde(rename_all = "camelCase")]
44pub struct Bookmark<'a> {
45 ///Title and comment in different languages.
46 #[serde(borrow)]
47 pub comments: Vec<crate::blue_rito::feed::bookmark::Locale<'a>>,
48 pub created_at: jacquard_common::types::string::Datetime,
49 ///OGP Description
50 #[serde(skip_serializing_if = "std::option::Option::is_none")]
51 #[serde(borrow)]
52 pub ogp_description: std::option::Option<jacquard_common::CowStr<'a>>,
53 ///OGP Image Uri
54 #[serde(skip_serializing_if = "std::option::Option::is_none")]
55 #[serde(borrow)]
56 pub ogp_image: std::option::Option<jacquard_common::types::string::Uri<'a>>,
57 ///OGP Title
58 #[serde(skip_serializing_if = "std::option::Option::is_none")]
59 #[serde(borrow)]
60 pub ogp_title: std::option::Option<jacquard_common::CowStr<'a>>,
61 #[serde(borrow)]
62 pub subject: jacquard_common::types::string::Uri<'a>,
63 ///Tags describing the uri's description (max 10 tags, 25 charactors)
64 #[serde(skip_serializing_if = "std::option::Option::is_none")]
65 #[serde(borrow)]
66 pub tags: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
67}
68
69impl jacquard_common::types::collection::Collection for Bookmark<'_> {
70 const NSID: &'static str = "blue.rito.feed.bookmark";
71}