atproto blogging
at main 85 lines 2.9 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: pub.leaflet.blocks.math 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 Math<'a> { 21 #[serde(borrow)] 22 pub tex: jacquard_common::CowStr<'a>, 23} 24 25fn lexicon_doc_pub_leaflet_blocks_math() -> ::jacquard_lexicon::lexicon::LexiconDoc< 26 'static, 27> { 28 ::jacquard_lexicon::lexicon::LexiconDoc { 29 lexicon: ::jacquard_lexicon::lexicon::Lexicon::Lexicon1, 30 id: ::jacquard_common::CowStr::new_static("pub.leaflet.blocks.math"), 31 revision: None, 32 description: None, 33 defs: { 34 let mut map = ::alloc::collections::BTreeMap::new(); 35 map.insert( 36 ::jacquard_common::smol_str::SmolStr::new_static("main"), 37 ::jacquard_lexicon::lexicon::LexUserType::Object(::jacquard_lexicon::lexicon::LexObject { 38 description: None, 39 required: Some( 40 vec![::jacquard_common::smol_str::SmolStr::new_static("tex")], 41 ), 42 nullable: None, 43 properties: { 44 #[allow(unused_mut)] 45 let mut map = ::alloc::collections::BTreeMap::new(); 46 map.insert( 47 ::jacquard_common::smol_str::SmolStr::new_static("tex"), 48 ::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString { 49 description: None, 50 format: None, 51 default: None, 52 min_length: None, 53 max_length: None, 54 min_graphemes: None, 55 max_graphemes: None, 56 r#enum: None, 57 r#const: None, 58 known_values: None, 59 }), 60 ); 61 map 62 }, 63 }), 64 ); 65 map 66 }, 67 } 68} 69 70impl<'a> ::jacquard_lexicon::schema::LexiconSchema for Math<'a> { 71 fn nsid() -> &'static str { 72 "pub.leaflet.blocks.math" 73 } 74 fn def_name() -> &'static str { 75 "main" 76 } 77 fn lexicon_doc() -> ::jacquard_lexicon::lexicon::LexiconDoc<'static> { 78 lexicon_doc_pub_leaflet_blocks_math() 79 } 80 fn validate( 81 &self, 82 ) -> ::core::result::Result<(), ::jacquard_lexicon::validation::ConstraintError> { 83 Ok(()) 84 } 85}