#![allow(clippy::pedantic, clippy::nursery, clippy::all)]
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(tag = "$type")]
pub enum MainLabelsRefs {
#[serde(rename = "com.atproto.label.defs#selfLabels")]
AtprotoLabelDefsSelfLabels(Box<crate::com::atproto::label::defs::SelfLabels>),
#[serde(other)]
Other,
}
pub const TYPE: &str = "app.bsky.feed.generator";
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Main {
#[serde(rename = "$type", default = "default_type")]
pub r#type: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub accepts_interactions: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
pub avatar: Option<proto_blue_lex_data::BlobRef>,
#[serde(skip_serializing_if = "Option::is_none")]
pub content_mode: Option<String>,
pub created_at: proto_blue_syntax::Datetime,
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub description_facets: Option<Vec<crate::app::bsky::richtext::facet::Main>>,
pub did: proto_blue_syntax::Did,
pub display_name: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub labels: Option<MainLabelsRefs>,
}
fn default_type() -> String {
TYPE.to_string()
}