Skip to main content

atrium_api/app/bsky/labeler/
defs.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `app.bsky.labeler.defs` namespace.
3#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
4#[serde(rename_all = "camelCase")]
5pub struct LabelerPoliciesData {
6    ///Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler.
7    #[serde(skip_serializing_if = "core::option::Option::is_none")]
8    pub label_value_definitions:
9        core::option::Option<Vec<crate::com::atproto::label::defs::LabelValueDefinition>>,
10    ///The label values which this labeler publishes. May include global or custom labels.
11    pub label_values: Vec<crate::com::atproto::label::defs::LabelValue>,
12}
13pub type LabelerPolicies = crate::types::Object<LabelerPoliciesData>;
14#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
15#[serde(rename_all = "camelCase")]
16pub struct LabelerViewData {
17    pub cid: crate::types::string::Cid,
18    pub creator: crate::app::bsky::actor::defs::ProfileView,
19    pub indexed_at: crate::types::string::Datetime,
20    #[serde(skip_serializing_if = "core::option::Option::is_none")]
21    pub labels: core::option::Option<Vec<crate::com::atproto::label::defs::Label>>,
22    #[serde(skip_serializing_if = "core::option::Option::is_none")]
23    pub like_count: core::option::Option<usize>,
24    pub uri: String,
25    #[serde(skip_serializing_if = "core::option::Option::is_none")]
26    pub viewer: core::option::Option<LabelerViewerState>,
27}
28pub type LabelerView = crate::types::Object<LabelerViewData>;
29#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
30#[serde(rename_all = "camelCase")]
31pub struct LabelerViewDetailedData {
32    pub cid: crate::types::string::Cid,
33    pub creator: crate::app::bsky::actor::defs::ProfileView,
34    pub indexed_at: crate::types::string::Datetime,
35    #[serde(skip_serializing_if = "core::option::Option::is_none")]
36    pub labels: core::option::Option<Vec<crate::com::atproto::label::defs::Label>>,
37    #[serde(skip_serializing_if = "core::option::Option::is_none")]
38    pub like_count: core::option::Option<usize>,
39    pub policies: crate::app::bsky::labeler::defs::LabelerPolicies,
40    ///The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.
41    #[serde(skip_serializing_if = "core::option::Option::is_none")]
42    pub reason_types: core::option::Option<Vec<crate::com::atproto::moderation::defs::ReasonType>>,
43    ///Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.
44    #[serde(skip_serializing_if = "core::option::Option::is_none")]
45    pub subject_collections: core::option::Option<Vec<crate::types::string::Nsid>>,
46    ///The set of subject types (account, record, etc) this service accepts reports on.
47    #[serde(skip_serializing_if = "core::option::Option::is_none")]
48    pub subject_types:
49        core::option::Option<Vec<crate::com::atproto::moderation::defs::SubjectType>>,
50    pub uri: String,
51    #[serde(skip_serializing_if = "core::option::Option::is_none")]
52    pub viewer: core::option::Option<LabelerViewerState>,
53}
54pub type LabelerViewDetailed = crate::types::Object<LabelerViewDetailedData>;
55#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
56#[serde(rename_all = "camelCase")]
57pub struct LabelerViewerStateData {
58    #[serde(skip_serializing_if = "core::option::Option::is_none")]
59    pub like: core::option::Option<String>,
60}
61pub type LabelerViewerState = crate::types::Object<LabelerViewerStateData>;