atrium_api/com/atproto/label/
subscribe_labels.rs1pub const NSID: &str = "com.atproto.label.subscribeLabels";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct ParametersData {
7 #[serde(skip_serializing_if = "core::option::Option::is_none")]
9 pub cursor: core::option::Option<i64>,
10}
11pub type Parameters = crate::types::Object<ParametersData>;
12#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
13#[serde(tag = "error", content = "message")]
14pub enum Error {
15 FutureCursor(Option<String>),
16}
17impl std::fmt::Display for Error {
18 fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
19 match self {
20 Error::FutureCursor(msg) => {
21 write!(_f, "FutureCursor")?;
22 if let Some(msg) = msg {
23 write!(_f, ": {msg}")?;
24 }
25 }
26 }
27 Ok(())
28 }
29}
30#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
31#[serde(rename_all = "camelCase")]
32pub struct InfoData {
33 #[serde(skip_serializing_if = "core::option::Option::is_none")]
34 pub message: core::option::Option<String>,
35 pub name: String,
36}
37pub type Info = crate::types::Object<InfoData>;
38#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
39#[serde(rename_all = "camelCase")]
40pub struct LabelsData {
41 pub labels: Vec<crate::com::atproto::label::defs::Label>,
42 pub seq: i64,
43}
44pub type Labels = crate::types::Object<LabelsData>;
45#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
46#[serde(tag = "$type")]
47pub enum Message {
48 #[serde(rename = "com.atproto.label.subscribeLabels#labels")]
49 Labels(Box<Labels>),
50 #[serde(rename = "com.atproto.label.subscribeLabels#info")]
51 Info(Box<Info>),
52}