atrium_api/app/bsky/actor/
profile.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
27
28
29
30
31
32
33
// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
//!Definitions for the `app.bsky.actor.profile` namespace.
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RecordData {
    ///Small image to be displayed next to posts from account. AKA, 'profile picture'
    #[serde(skip_serializing_if = "Option::is_none")]
    pub avatar: Option<crate::types::BlobRef>,
    ///Larger horizontal image to display behind profile view.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub banner: Option<crate::types::BlobRef>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub created_at: Option<crate::types::string::Datetime>,
    ///Free-form profile description text.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub display_name: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub joined_via_starter_pack: Option<crate::com::atproto::repo::strong_ref::Main>,
    ///Self-label values, specific to the Bluesky application, on the overall account.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub labels: Option<crate::types::Union<RecordLabelsRefs>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub pinned_post: Option<crate::com::atproto::repo::strong_ref::Main>,
}
pub type Record = crate::types::Object<RecordData>;
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
pub enum RecordLabelsRefs {
    #[serde(rename = "com.atproto.label.defs#selfLabels")]
    ComAtprotoLabelDefsSelfLabels(Box<crate::com::atproto::label::defs::SelfLabels>),
}