jacquard_api/sh_weaver/notebook/
chapter.rs

1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: sh.weaver.notebook.chapter
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8///A grouping of entries in a notebook, intended to be displayed as a single page.
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 Chapter<'a> {
21    ///Client-declared timestamp when this was originally created.
22    #[serde(skip_serializing_if = "std::option::Option::is_none")]
23    pub created_at: std::option::Option<jacquard_common::types::string::Datetime>,
24    #[serde(borrow)]
25    pub entry_list: Vec<crate::com_atproto::repo::strong_ref::StrongRef<'a>>,
26    ///The notebook this page belongs to.
27    #[serde(borrow)]
28    pub notebook: crate::com_atproto::repo::strong_ref::StrongRef<'a>,
29    #[serde(skip_serializing_if = "std::option::Option::is_none")]
30    #[serde(borrow)]
31    pub tags: std::option::Option<crate::sh_weaver::notebook::Tags<'a>>,
32    #[serde(skip_serializing_if = "std::option::Option::is_none")]
33    #[serde(borrow)]
34    pub title: std::option::Option<crate::sh_weaver::notebook::Title<'a>>,
35}
36
37impl jacquard_common::types::collection::Collection for Chapter<'_> {
38    const NSID: &'static str = "sh.weaver.notebook.chapter";
39}