A better Rust ATProto crate
at main 1.1 kB view raw
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 bon::Builder 18)] 19#[serde(rename_all = "camelCase")] 20pub struct AspectRatio<'a> { 21 pub height: i64, 22 pub width: i64, 23} 24 25#[jacquard_derive::lexicon] 26#[derive( 27 serde::Serialize, 28 serde::Deserialize, 29 Debug, 30 Clone, 31 PartialEq, 32 Eq, 33 jacquard_derive::IntoStatic, 34 bon::Builder 35)] 36#[serde(rename_all = "camelCase")] 37pub struct Image<'a> { 38 /// Alt text description of the image, for accessibility. 39 #[serde(skip_serializing_if = "std::option::Option::is_none")] 40 #[builder(into)] 41 #[serde(borrow)] 42 pub alt: Option<jacquard_common::CowStr<'a>>, 43 #[serde(borrow)] 44 pub aspect_ratio: crate::pub_leaflet::blocks::image::AspectRatio<'a>, 45 #[serde(borrow)] 46 pub image: jacquard_common::types::blob::Blob<'a>, 47}