atrium_api/app/bsky/feed/
postgate.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
//!Definitions for the `app.bsky.feed.postgate` namespace.
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RecordData {
    pub created_at: crate::types::string::Datetime,
    ///List of AT-URIs embedding this post that the author has detached from.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub detached_embedding_uris: Option<Vec<String>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub embedding_rules: Option<Vec<crate::types::Union<RecordEmbeddingRulesItem>>>,
    ///Reference (AT-URI) to the post record.
    pub post: String,
}
pub type Record = crate::types::Object<RecordData>;
///Disables embedding of this post.
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DisableRuleData {}
pub type DisableRule = crate::types::Object<DisableRuleData>;
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
pub enum RecordEmbeddingRulesItem {
    #[serde(rename = "app.bsky.feed.postgate#disableRule")]
    DisableRule(Box<DisableRule>),
}