#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Main {
pub record: crate::com::atproto::repo::strong_ref::Main,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct View {
pub record: ViewRecordEnum,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ViewBlocked {
pub author: crate::app::bsky::feed::defs::BlockedAuthor,
pub blocked: bool,
pub uri: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ViewNotFound {
pub not_found: bool,
pub uri: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ViewRecord {
pub author: crate::app::bsky::actor::defs::ProfileViewBasic,
pub cid: crate::types::string::Cid,
#[serde(skip_serializing_if = "Option::is_none")]
pub embeds: Option<Vec<ViewRecordEmbedsItem>>,
pub indexed_at: crate::types::string::Datetime,
#[serde(skip_serializing_if = "Option::is_none")]
pub labels: Option<Vec<crate::com::atproto::label::defs::Label>>,
pub uri: String,
pub value: crate::records::Record,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
pub enum ViewRecordEmbedsItem {
#[serde(rename = "app.bsky.embed.images#view")]
AppBskyEmbedImagesView(Box<crate::app::bsky::embed::images::View>),
#[serde(rename = "app.bsky.embed.external#view")]
AppBskyEmbedExternalView(Box<crate::app::bsky::embed::external::View>),
#[serde(rename = "app.bsky.embed.record#view")]
AppBskyEmbedRecordView(Box<crate::app::bsky::embed::record::View>),
#[serde(rename = "app.bsky.embed.recordWithMedia#view")]
AppBskyEmbedRecordWithMediaView(
Box<crate::app::bsky::embed::record_with_media::View>,
),
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
pub enum ViewRecordEnum {
#[serde(rename = "app.bsky.embed.record#viewRecord")]
ViewRecord(Box<ViewRecord>),
#[serde(rename = "app.bsky.embed.record#viewNotFound")]
ViewNotFound(Box<ViewNotFound>),
#[serde(rename = "app.bsky.embed.record#viewBlocked")]
ViewBlocked(Box<ViewBlocked>),
#[serde(rename = "app.bsky.feed.defs#generatorView")]
AppBskyFeedDefsGeneratorView(Box<crate::app::bsky::feed::defs::GeneratorView>),
#[serde(rename = "app.bsky.graph.defs#listView")]
AppBskyGraphDefsListView(Box<crate::app::bsky::graph::defs::ListView>),
}