atrium_api/app/bsky/embed/
external.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `app.bsky.embed.external` namespace.
3///A representation of some externally linked content (eg, a URL and 'card'), 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 external: External,
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 ExternalData {
13    pub description: String,
14    #[serde(skip_serializing_if = "core::option::Option::is_none")]
15    pub thumb: core::option::Option<crate::types::BlobRef>,
16    pub title: String,
17    pub uri: String,
18}
19pub type External = crate::types::Object<ExternalData>;
20#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
21#[serde(rename_all = "camelCase")]
22pub struct ViewData {
23    pub external: ViewExternal,
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 ViewExternalData {
29    pub description: String,
30    #[serde(skip_serializing_if = "core::option::Option::is_none")]
31    pub thumb: core::option::Option<String>,
32    pub title: String,
33    pub uri: String,
34}
35pub type ViewExternal = crate::types::Object<ViewExternalData>;