atrium_api/app/bsky/labeler/
service.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `app.bsky.labeler.service` namespace.
3#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
4#[serde(rename_all = "camelCase")]
5pub struct RecordData {
6    pub created_at: crate::types::string::Datetime,
7    #[serde(skip_serializing_if = "core::option::Option::is_none")]
8    pub labels: core::option::Option<crate::types::Union<RecordLabelsRefs>>,
9    pub policies: crate::app::bsky::labeler::defs::LabelerPolicies,
10    ///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.
11    #[serde(skip_serializing_if = "core::option::Option::is_none")]
12    pub reason_types: core::option::Option<
13        Vec<crate::com::atproto::moderation::defs::ReasonType>,
14    >,
15    ///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.
16    #[serde(skip_serializing_if = "core::option::Option::is_none")]
17    pub subject_collections: core::option::Option<Vec<crate::types::string::Nsid>>,
18    ///The set of subject types (account, record, etc) this service accepts reports on.
19    #[serde(skip_serializing_if = "core::option::Option::is_none")]
20    pub subject_types: core::option::Option<
21        Vec<crate::com::atproto::moderation::defs::SubjectType>,
22    >,
23}
24pub type Record = crate::types::Object<RecordData>;
25#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
26#[serde(tag = "$type")]
27pub enum RecordLabelsRefs {
28    #[serde(rename = "com.atproto.label.defs#selfLabels")]
29    ComAtprotoLabelDefsSelfLabels(Box<crate::com::atproto::label::defs::SelfLabels>),
30}