A better Rust ATProto crate
at lifetimes 1.8 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: blog.pckt.theme 4// 5// This file was automatically generated from Lexicon schemas. 6// Any manual changes will be overwritten on the next regeneration. 7 8///Theme configuration for a blog publication 9#[jacquard_derive::lexicon] 10#[derive( 11 serde::Serialize, 12 serde::Deserialize, 13 Debug, 14 Clone, 15 PartialEq, 16 Eq, 17 jacquard_derive::IntoStatic 18)] 19#[serde(rename_all = "camelCase")] 20pub struct Theme<'a> { 21 ///Dark mode color palette 22 #[serde(borrow)] 23 pub dark: crate::blog_pckt::theme::Palette<'a>, 24 ///Font family name (optional) 25 #[serde(skip_serializing_if = "std::option::Option::is_none")] 26 #[serde(borrow)] 27 pub font: std::option::Option<jacquard_common::CowStr<'a>>, 28 ///Light mode color palette 29 #[serde(borrow)] 30 pub light: crate::blog_pckt::theme::Palette<'a>, 31} 32 33impl jacquard_common::types::collection::Collection for Theme<'_> { 34 const NSID: &'static str = "blog.pckt.theme"; 35} 36 37///Color palette with CSS hex values 38#[jacquard_derive::lexicon] 39#[derive( 40 serde::Serialize, 41 serde::Deserialize, 42 Debug, 43 Clone, 44 PartialEq, 45 Eq, 46 jacquard_derive::IntoStatic 47)] 48#[serde(rename_all = "camelCase")] 49pub struct Palette<'a> { 50 ///Accent color (hex value) 51 #[serde(borrow)] 52 pub accent: jacquard_common::CowStr<'a>, 53 ///Background color (hex value) 54 #[serde(borrow)] 55 pub background: jacquard_common::CowStr<'a>, 56 ///Link color (hex value) 57 #[serde(borrow)] 58 pub link: jacquard_common::CowStr<'a>, 59 ///Surface hover color (hex value) 60 #[serde(borrow)] 61 pub surface_hover: jacquard_common::CowStr<'a>, 62 ///Primary text color (hex value) 63 #[serde(borrow)] 64 pub text: jacquard_common::CowStr<'a>, 65}