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: core::option::Option<
9        Vec<crate::com::atproto::label::defs::LabelValueDefinition>,
10    >,
11    ///The label values which this labeler publishes. May include global or custom labels.
12    pub label_values: Vec<crate::com::atproto::label::defs::LabelValue>,
13}
14pub type LabelerPolicies = crate::types::Object<LabelerPoliciesData>;
15#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
16#[serde(rename_all = "camelCase")]
17pub struct LabelerViewData {
18    pub cid: crate::types::string::Cid,
19    pub creator: crate::app::bsky::actor::defs::ProfileView,
20    pub indexed_at: crate::types::string::Datetime,
21    #[serde(skip_serializing_if = "core::option::Option::is_none")]
22    pub labels: core::option::Option<Vec<crate::com::atproto::label::defs::Label>>,
23    #[serde(skip_serializing_if = "core::option::Option::is_none")]
24    pub like_count: core::option::Option<usize>,
25    pub uri: String,
26    #[serde(skip_serializing_if = "core::option::Option::is_none")]
27    pub viewer: core::option::Option<LabelerViewerState>,
28}
29pub type LabelerView = crate::types::Object<LabelerViewData>;
30#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
31#[serde(rename_all = "camelCase")]
32pub struct LabelerViewDetailedData {
33    pub cid: crate::types::string::Cid,
34    pub creator: crate::app::bsky::actor::defs::ProfileView,
35    pub indexed_at: crate::types::string::Datetime,
36    #[serde(skip_serializing_if = "core::option::Option::is_none")]
37    pub labels: core::option::Option<Vec<crate::com::atproto::label::defs::Label>>,
38    #[serde(skip_serializing_if = "core::option::Option::is_none")]
39    pub like_count: core::option::Option<usize>,
40    pub policies: crate::app::bsky::labeler::defs::LabelerPolicies,
41    ///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.
42    #[serde(skip_serializing_if = "core::option::Option::is_none")]
43    pub reason_types: core::option::Option<
44        Vec<crate::com::atproto::moderation::defs::ReasonType>,
45    >,
46    ///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.
47    #[serde(skip_serializing_if = "core::option::Option::is_none")]
48    pub subject_collections: core::option::Option<Vec<crate::types::string::Nsid>>,
49    ///The set of subject types (account, record, etc) this service accepts reports on.
50    #[serde(skip_serializing_if = "core::option::Option::is_none")]
51    pub subject_types: core::option::Option<
52        Vec<crate::com::atproto::moderation::defs::SubjectType>,
53    >,
54    pub uri: String,
55    #[serde(skip_serializing_if = "core::option::Option::is_none")]
56    pub viewer: core::option::Option<LabelerViewerState>,
57}
58pub type LabelerViewDetailed = crate::types::Object<LabelerViewDetailedData>;
59#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
60#[serde(rename_all = "camelCase")]
61pub struct LabelerViewerStateData {
62    #[serde(skip_serializing_if = "core::option::Option::is_none")]
63    pub like: core::option::Option<String>,
64}
65pub type LabelerViewerState = crate::types::Object<LabelerViewerStateData>;