A better Rust ATProto crate
at main 1.2 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: sh.weaver.embed.defs 4// 5// This file was automatically generated from Lexicon schemas. 6// Any manual changes will be overwritten on the next regeneration. 7 8pub mod external; 9pub mod images; 10pub mod record_with_media; 11pub mod records; 12pub mod video; 13 14/// Proportional size of the embed relative to the viewport in larger windows. The dimensions are percentage out of 100. Could we use more granularity? Maybe, but come on. 15#[jacquard_derive::lexicon] 16#[derive( 17 serde::Serialize, 18 serde::Deserialize, 19 Debug, 20 Clone, 21 PartialEq, 22 Eq, 23 jacquard_derive::IntoStatic, 24 bon::Builder 25)] 26#[serde(rename_all = "camelCase")] 27pub struct PercentSize<'a> { 28 pub height: i64, 29 pub width: i64, 30} 31 32/// Pixel-exact embed size. The dimensions are logical pixels, subject to scaling, so 200px at X2 scale is 400px. 33#[jacquard_derive::lexicon] 34#[derive( 35 serde::Serialize, 36 serde::Deserialize, 37 Debug, 38 Clone, 39 PartialEq, 40 Eq, 41 jacquard_derive::IntoStatic, 42 bon::Builder 43)] 44#[serde(rename_all = "camelCase")] 45pub struct PixelSize<'a> { 46 pub height: i64, 47 pub width: i64, 48}