A better Rust ATProto crate
at lifetimes 1.1 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)] 25#[serde(rename_all = "camelCase")] 26pub struct PercentSize<'a> { 27 pub height: i64, 28 pub width: i64, 29} 30 31///Pixel-exact embed size. The dimensions are logical pixels, subject to scaling, so 200px at X2 scale is 400px. 32#[jacquard_derive::lexicon] 33#[derive( 34 serde::Serialize, 35 serde::Deserialize, 36 Debug, 37 Clone, 38 PartialEq, 39 Eq, 40 jacquard_derive::IntoStatic 41)] 42#[serde(rename_all = "camelCase")] 43pub struct PixelSize<'a> { 44 pub height: i64, 45 pub width: i64, 46}