Skip to main content

proto_blue_api/generated/com/atproto/label/
subscribeLabels.rs

1// Generated by atproto-codegen. Do not edit.
2//! Lexicon: com.atproto.label.subscribeLabels
3
4use serde::{Deserialize, Serialize};
5
6#[derive(Debug, Clone, Serialize, Deserialize)]
7#[serde(rename_all = "camelCase")]
8pub struct Info {
9    #[serde(skip_serializing_if = "Option::is_none")]
10    pub message: Option<String>,
11    pub name: String,
12}
13
14#[derive(Debug, Clone, Serialize, Deserialize)]
15#[serde(rename_all = "camelCase")]
16pub struct Labels {
17    pub labels: Vec<crate::com::atproto::label::defs::Label>,
18    pub seq: i64,
19}
20
21/// Subscribe to stream of labels (and negations). Public endpoint implemented by mod services. Uses same sequencing scheme as repo event stream.
22/// XRPC Subscription: com.atproto.label.subscribeLabels
23#[derive(Debug, Clone, Serialize, Deserialize)]
24#[serde(rename_all = "camelCase")]
25pub struct Params {
26    #[serde(skip_serializing_if = "Option::is_none")]
27    pub cursor: Option<i64>,
28}
29
30#[derive(Debug, Clone, Serialize, Deserialize)]
31#[serde(tag = "$type")]
32pub enum Message {
33    #[serde(rename = "com.atproto.label.subscribeLabels#labels")]
34    AtprotoLabelSubscribeLabelsLabels(Box<Labels>),
35    #[serde(rename = "com.atproto.label.subscribeLabels#info")]
36    AtprotoLabelSubscribeLabelsInfo(Box<Info>),
37    #[serde(other)]
38    Other,
39}
40