atproto blogging
1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: pub.leaflet.blocks.horizontalRule
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 Default
18)]
19#[serde(rename_all = "camelCase")]
20pub struct HorizontalRule<'a> {}
21fn lexicon_doc_pub_leaflet_blocks_horizontalRule() -> ::jacquard_lexicon::lexicon::LexiconDoc<
22 'static,
23> {
24 ::jacquard_lexicon::lexicon::LexiconDoc {
25 lexicon: ::jacquard_lexicon::lexicon::Lexicon::Lexicon1,
26 id: ::jacquard_common::CowStr::new_static("pub.leaflet.blocks.horizontalRule"),
27 revision: None,
28 description: None,
29 defs: {
30 let mut map = ::alloc::collections::BTreeMap::new();
31 map.insert(
32 ::jacquard_common::smol_str::SmolStr::new_static("main"),
33 ::jacquard_lexicon::lexicon::LexUserType::Object(::jacquard_lexicon::lexicon::LexObject {
34 description: None,
35 required: Some(vec![]),
36 nullable: None,
37 properties: {
38 #[allow(unused_mut)]
39 let mut map = ::alloc::collections::BTreeMap::new();
40 map
41 },
42 }),
43 );
44 map
45 },
46 }
47}
48
49impl<'a> ::jacquard_lexicon::schema::LexiconSchema for HorizontalRule<'a> {
50 fn nsid() -> &'static str {
51 "pub.leaflet.blocks.horizontalRule"
52 }
53 fn def_name() -> &'static str {
54 "main"
55 }
56 fn lexicon_doc() -> ::jacquard_lexicon::lexicon::LexiconDoc<'static> {
57 lexicon_doc_pub_leaflet_blocks_horizontalRule()
58 }
59 fn validate(
60 &self,
61 ) -> ::core::result::Result<(), ::jacquard_lexicon::validation::ConstraintError> {
62 Ok(())
63 }
64}