atrium_api/com/atproto/label/
query_labels.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `com.atproto.label.queryLabels` namespace.
3pub const NSID: &str = "com.atproto.label.queryLabels";
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")]
8    pub cursor: core::option::Option<String>,
9    #[serde(skip_serializing_if = "core::option::Option::is_none")]
10    pub limit: core::option::Option<crate::types::LimitedNonZeroU8<250u8>>,
11    ///Optional list of label sources (DIDs) to filter on.
12    #[serde(skip_serializing_if = "core::option::Option::is_none")]
13    pub sources: core::option::Option<Vec<crate::types::string::Did>>,
14    ///List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI.
15    pub uri_patterns: Vec<String>,
16}
17pub type Parameters = crate::types::Object<ParametersData>;
18#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
19#[serde(rename_all = "camelCase")]
20pub struct OutputData {
21    #[serde(skip_serializing_if = "core::option::Option::is_none")]
22    pub cursor: core::option::Option<String>,
23    pub labels: Vec<crate::com::atproto::label::defs::Label>,
24}
25pub type Output = crate::types::Object<OutputData>;
26#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
27#[serde(tag = "error", content = "message")]
28pub enum Error {}
29impl std::fmt::Display for Error {
30    fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
31        Ok(())
32    }
33}