A better Rust ATProto crate
at oauth 1.3 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: com.atproto.lexicon.schema 4// 5// This file was automatically generated from Lexicon schemas. 6// Any manual changes will be overwritten on the next regeneration. 7 8///Representation of Lexicon schemas themselves, when published as atproto records. Note that the schema language is not defined in Lexicon; this meta schema currently only includes a single version field ('lexicon'). See the atproto specifications for description of the other expected top-level fields ('id', 'defs', etc). 9#[jacquard_derive::lexicon] 10#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11#[serde(rename_all = "camelCase")] 12pub struct Schema<'a> { 13 ///Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system. 14 pub lexicon: i64, 15} 16 17impl jacquard_common::types::collection::Collection for Schema<'_> { 18 const NSID: &'static str = "com.atproto.lexicon.schema"; 19} 20 21impl jacquard_common::IntoStatic for Schema<'_> { 22 type Output = Schema<'static>; 23 fn into_static(self) -> Self::Output { 24 Schema { 25 lexicon: self.lexicon.into_static(), 26 extra_data: self.extra_data.into_static(), 27 } 28 } 29}