Skip to main content

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

1// Generated by atproto-codegen. Do not edit.
2//! Lexicon: com.atproto.label.queryLabels
3
4use serde::{Deserialize, Serialize};
5
6/// Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth.
7/// XRPC Query: com.atproto.label.queryLabels
8#[derive(Debug, Clone, Serialize, Deserialize)]
9#[serde(rename_all = "camelCase")]
10pub struct Params {
11    #[serde(skip_serializing_if = "Option::is_none")]
12    pub cursor: Option<String>,
13    #[serde(skip_serializing_if = "Option::is_none")]
14    pub limit: Option<i64>,
15    #[serde(skip_serializing_if = "Option::is_none")]
16    pub sources: Option<Vec<String>>,
17    pub uri_patterns: Vec<String>,
18}
19
20#[derive(Debug, Clone, Serialize, Deserialize)]
21#[serde(rename_all = "camelCase")]
22pub struct Output {
23    #[serde(skip_serializing_if = "Option::is_none")]
24    pub cursor: Option<String>,
25    pub labels: Vec<crate::com::atproto::label::defs::Label>,
26}