atrium_api/app/bsky/feed/
threadgate.rs#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RecordData {
#[serde(skip_serializing_if = "core::option::Option::is_none")]
pub allow: core::option::Option<Vec<crate::types::Union<RecordAllowItem>>>,
pub created_at: crate::types::string::Datetime,
#[serde(skip_serializing_if = "core::option::Option::is_none")]
pub hidden_replies: core::option::Option<Vec<String>>,
pub post: String,
}
pub type Record = crate::types::Object<RecordData>;
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct FollowingRuleData {}
pub type FollowingRule = crate::types::Object<FollowingRuleData>;
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListRuleData {
pub list: String,
}
pub type ListRule = crate::types::Object<ListRuleData>;
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct MentionRuleData {}
pub type MentionRule = crate::types::Object<MentionRuleData>;
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
pub enum RecordAllowItem {
#[serde(rename = "app.bsky.feed.threadgate#mentionRule")]
MentionRule(Box<MentionRule>),
#[serde(rename = "app.bsky.feed.threadgate#followingRule")]
FollowingRule(Box<FollowingRule>),
#[serde(rename = "app.bsky.feed.threadgate#listRule")]
ListRule(Box<ListRule>),
}