atrium_api/app/bsky/actor/
status.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `app.bsky.actor.status` namespace.
3#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
4#[serde(rename_all = "camelCase")]
5pub struct RecordData {
6    pub created_at: crate::types::string::Datetime,
7    ///The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.
8    #[serde(skip_serializing_if = "core::option::Option::is_none")]
9    pub duration_minutes: core::option::Option<core::num::NonZeroU64>,
10    ///An optional embed associated with the status.
11    #[serde(skip_serializing_if = "core::option::Option::is_none")]
12    pub embed: core::option::Option<crate::types::Union<RecordEmbedRefs>>,
13    ///The status for the account.
14    pub status: String,
15}
16pub type Record = crate::types::Object<RecordData>;
17///Advertises an account as currently offering live content.
18pub const LIVE: &str = "app.bsky.actor.status#live";
19#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
20#[serde(tag = "$type")]
21pub enum RecordEmbedRefs {
22    #[serde(rename = "app.bsky.embed.external")]
23    AppBskyEmbedExternalMain(Box<crate::app::bsky::embed::external::Main>),
24}