atrium-api 0.25.8

API library for AT Protocol (Bluesky)
Documentation
// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
//!Definitions for the `app.bsky.labeler.defs` namespace.
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct LabelerPoliciesData {
    ///Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler.
    #[serde(skip_serializing_if = "core::option::Option::is_none")]
    pub label_value_definitions:
        core::option::Option<Vec<crate::com::atproto::label::defs::LabelValueDefinition>>,
    ///The label values which this labeler publishes. May include global or custom labels.
    pub label_values: Vec<crate::com::atproto::label::defs::LabelValue>,
}
pub type LabelerPolicies = crate::types::Object<LabelerPoliciesData>;
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct LabelerViewData {
    pub cid: crate::types::string::Cid,
    pub creator: crate::app::bsky::actor::defs::ProfileView,
    pub indexed_at: crate::types::string::Datetime,
    #[serde(skip_serializing_if = "core::option::Option::is_none")]
    pub labels: core::option::Option<Vec<crate::com::atproto::label::defs::Label>>,
    #[serde(skip_serializing_if = "core::option::Option::is_none")]
    pub like_count: core::option::Option<usize>,
    pub uri: String,
    #[serde(skip_serializing_if = "core::option::Option::is_none")]
    pub viewer: core::option::Option<LabelerViewerState>,
}
pub type LabelerView = crate::types::Object<LabelerViewData>;
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct LabelerViewDetailedData {
    pub cid: crate::types::string::Cid,
    pub creator: crate::app::bsky::actor::defs::ProfileView,
    pub indexed_at: crate::types::string::Datetime,
    #[serde(skip_serializing_if = "core::option::Option::is_none")]
    pub labels: core::option::Option<Vec<crate::com::atproto::label::defs::Label>>,
    #[serde(skip_serializing_if = "core::option::Option::is_none")]
    pub like_count: core::option::Option<usize>,
    pub policies: crate::app::bsky::labeler::defs::LabelerPolicies,
    ///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.
    #[serde(skip_serializing_if = "core::option::Option::is_none")]
    pub reason_types: core::option::Option<Vec<crate::com::atproto::moderation::defs::ReasonType>>,
    ///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.
    #[serde(skip_serializing_if = "core::option::Option::is_none")]
    pub subject_collections: core::option::Option<Vec<crate::types::string::Nsid>>,
    ///The set of subject types (account, record, etc) this service accepts reports on.
    #[serde(skip_serializing_if = "core::option::Option::is_none")]
    pub subject_types:
        core::option::Option<Vec<crate::com::atproto::moderation::defs::SubjectType>>,
    pub uri: String,
    #[serde(skip_serializing_if = "core::option::Option::is_none")]
    pub viewer: core::option::Option<LabelerViewerState>,
}
pub type LabelerViewDetailed = crate::types::Object<LabelerViewDetailedData>;
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct LabelerViewerStateData {
    #[serde(skip_serializing_if = "core::option::Option::is_none")]
    pub like: core::option::Option<String>,
}
pub type LabelerViewerState = crate::types::Object<LabelerViewerStateData>;