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<Vec<crate::com::atproto::moderation::defs::ReasonType>>,
13    ///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.
14    #[serde(skip_serializing_if = "core::option::Option::is_none")]
15    pub subject_collections: core::option::Option<Vec<crate::types::string::Nsid>>,
16    ///The set of subject types (account, record, etc) this service accepts reports on.
17    #[serde(skip_serializing_if = "core::option::Option::is_none")]
18    pub subject_types:
19        core::option::Option<Vec<crate::com::atproto::moderation::defs::SubjectType>>,
20}
21pub type Record = crate::types::Object<RecordData>;
22#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
23#[serde(tag = "$type")]
24pub enum RecordLabelsRefs {
25    #[serde(rename = "com.atproto.label.defs#selfLabels")]
26    ComAtprotoLabelDefsSelfLabels(Box<crate::com::atproto::label::defs::SelfLabels>),
27}