Skip to main content

jacquard_api/pub_leaflet/blocks/
horizontal_rule.rs

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#[allow(unused_imports)]
9use jacquard_common::deps::codegen::unicode_segmentation::UnicodeSegmentation;
10use jacquard_derive::{IntoStatic, lexicon};
11use jacquard_lexicon::lexicon::LexiconDoc;
12use jacquard_lexicon::schema::LexiconSchema;
13
14#[allow(unused_imports)]
15use jacquard_lexicon::validation::{ConstraintError, ValidationPath};
16use serde::{Serialize, Deserialize};
17
18#[lexicon]
19#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
20#[serde(rename_all = "camelCase")]
21pub struct HorizontalRule<'a> {}
22impl<'a> LexiconSchema for HorizontalRule<'a> {
23    fn nsid() -> &'static str {
24        "pub.leaflet.blocks.horizontalRule"
25    }
26    fn def_name() -> &'static str {
27        "main"
28    }
29    fn lexicon_doc() -> LexiconDoc<'static> {
30        lexicon_doc_pub_leaflet_blocks_horizontalRule()
31    }
32    fn validate(&self) -> Result<(), ConstraintError> {
33        Ok(())
34    }
35}
36
37fn lexicon_doc_pub_leaflet_blocks_horizontalRule() -> LexiconDoc<'static> {
38    #[allow(unused_imports)]
39    use jacquard_common::{CowStr, deps::smol_str::SmolStr, types::blob::MimeType};
40    use jacquard_lexicon::lexicon::*;
41    use alloc::collections::BTreeMap;
42    LexiconDoc {
43        lexicon: Lexicon::Lexicon1,
44        id: CowStr::new_static("pub.leaflet.blocks.horizontalRule"),
45        defs: {
46            let mut map = BTreeMap::new();
47            map.insert(
48                SmolStr::new_static("main"),
49                LexUserType::Object(LexObject {
50                    required: Some(vec![]),
51                    properties: {
52                        #[allow(unused_mut)]
53                        let mut map = BTreeMap::new();
54                        map
55                    },
56                    ..Default::default()
57                }),
58            );
59            map
60        },
61        ..Default::default()
62    }
63}