atrium_api/app/bsky/embed/
images.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `app.bsky.embed.images` namespace.
3//!A set of images embedded in a Bluesky record (eg, a post).
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct MainData {
7    pub images: Vec<Image>,
8}
9pub type Main = crate::types::Object<MainData>;
10#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
11#[serde(rename_all = "camelCase")]
12pub struct ImageData {
13    ///Alt text description of the image, for accessibility.
14    pub alt: String,
15    #[serde(skip_serializing_if = "core::option::Option::is_none")]
16    pub aspect_ratio: core::option::Option<crate::app::bsky::embed::defs::AspectRatio>,
17    pub image: crate::types::BlobRef,
18}
19pub type Image = crate::types::Object<ImageData>;
20#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
21#[serde(rename_all = "camelCase")]
22pub struct ViewData {
23    pub images: Vec<ViewImage>,
24}
25pub type View = crate::types::Object<ViewData>;
26#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
27#[serde(rename_all = "camelCase")]
28pub struct ViewImageData {
29    ///Alt text description of the image, for accessibility.
30    pub alt: String,
31    #[serde(skip_serializing_if = "core::option::Option::is_none")]
32    pub aspect_ratio: core::option::Option<crate::app::bsky::embed::defs::AspectRatio>,
33    ///Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View.
34    pub fullsize: String,
35    ///Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.
36    pub thumb: String,
37}
38pub type ViewImage = crate::types::Object<ViewImageData>;