Skip to main content

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    ///The raw image file. May be up to 2 MB, formerly limited to 1 MB.
18    pub image: crate::types::BlobRef,
19}
20pub type Image = crate::types::Object<ImageData>;
21#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
22#[serde(rename_all = "camelCase")]
23pub struct ViewData {
24    pub images: Vec<ViewImage>,
25}
26pub type View = crate::types::Object<ViewData>;
27#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
28#[serde(rename_all = "camelCase")]
29pub struct ViewImageData {
30    ///Alt text description of the image, for accessibility.
31    pub alt: String,
32    #[serde(skip_serializing_if = "core::option::Option::is_none")]
33    pub aspect_ratio: core::option::Option<crate::app::bsky::embed::defs::AspectRatio>,
34    ///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.
35    pub fullsize: String,
36    ///Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.
37    pub thumb: String,
38}
39pub type ViewImage = crate::types::Object<ViewImageData>;