Something went wrong. Try again.
atproto made easy crates.io/crates/jacquard
atproto rust
Something went wrong. Try again.
2.2 kB · 71 lines
Rust
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071// @generated by jacquard-lexicon. DO NOT EDIT.//// Lexicon: io.kich.graph.defs//// This file was automatically generated from Lexicon schemas.// Any manual changes will be overwritten on the next regeneration.
pub mod follow;
#[allow(unused_imports)]use jacquard_common::deps::codegen::unicode_segmentation::UnicodeSegmentation;use jacquard_derive::{IntoStatic, lexicon};use jacquard_lexicon::lexicon::LexiconDoc;use jacquard_lexicon::schema::LexiconSchema;
#[allow(unused_imports)]use jacquard_lexicon::validation::{ConstraintError, ValidationPath};use serde::{Serialize, Deserialize};/// Shared definitions for graph-related lexicons
#[lexicon]#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]#[serde(rename_all = "camelCase")]pub struct Defs<'a> {}impl<'a> LexiconSchema for Defs<'a> { fn nsid() -> &'static str { "io.kich.graph.defs" } fn def_name() -> &'static str { "main" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_io_kich_graph_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) }}
fn lexicon_doc_io_kich_graph_defs() -> LexiconDoc<'static> { #[allow(unused_imports)] use jacquard_common::{CowStr, deps::smol_str::SmolStr, types::blob::MimeType}; use jacquard_lexicon::lexicon::*; use alloc::collections::BTreeMap; LexiconDoc { lexicon: Lexicon::Lexicon1, id: CowStr::new_static("io.kich.graph.defs"), defs: { let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("main"), LexUserType::Object(LexObject { description: Some( CowStr::new_static( "Shared definitions for graph-related lexicons", ), ), properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map }, ..Default::default() }), ); map }, ..Default::default() }}