atrium_api/app/bsky/embed/
record_with_media.rs#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct MainData {
pub media: crate::types::Union<MainMediaRefs>,
pub record: crate::app::bsky::embed::record::Main,
}
pub type Main = crate::types::Object<MainData>;
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ViewData {
pub media: crate::types::Union<ViewMediaRefs>,
pub record: crate::app::bsky::embed::record::View,
}
pub type View = crate::types::Object<ViewData>;
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
pub enum MainMediaRefs {
#[serde(rename = "app.bsky.embed.images")]
AppBskyEmbedImagesMain(Box<crate::app::bsky::embed::images::Main>),
#[serde(rename = "app.bsky.embed.video")]
AppBskyEmbedVideoMain(Box<crate::app::bsky::embed::video::Main>),
#[serde(rename = "app.bsky.embed.external")]
AppBskyEmbedExternalMain(Box<crate::app::bsky::embed::external::Main>),
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
pub enum ViewMediaRefs {
#[serde(rename = "app.bsky.embed.images#view")]
AppBskyEmbedImagesView(Box<crate::app::bsky::embed::images::View>),
#[serde(rename = "app.bsky.embed.video#view")]
AppBskyEmbedVideoView(Box<crate::app::bsky::embed::video::View>),
#[serde(rename = "app.bsky.embed.external#view")]
AppBskyEmbedExternalView(Box<crate::app::bsky::embed::external::View>),
}