A better Rust ATProto crate
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: pub.leaflet.blocks.image 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)] 18#[serde(rename_all = "camelCase")] 19pub struct AspectRatio<'a> { 20 pub height: i64, 21 pub width: i64, 22} 23 24#[jacquard_derive::lexicon] 25#[derive( 26 serde::Serialize, 27 serde::Deserialize, 28 Debug, 29 Clone, 30 PartialEq, 31 Eq, 32 jacquard_derive::IntoStatic 33)] 34#[serde(rename_all = "camelCase")] 35pub struct Image<'a> { 36 ///Alt text description of the image, for accessibility. 37 #[serde(skip_serializing_if = "std::option::Option::is_none")] 38 #[serde(borrow)] 39 pub alt: std::option::Option<jacquard_common::CowStr<'a>>, 40 #[serde(borrow)] 41 pub aspect_ratio: crate::pub_leaflet::blocks::image::AspectRatio<'a>, 42 #[serde(borrow)] 43 pub image: jacquard_common::types::blob::Blob<'a>, 44}