// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: app.bsky.labeler.defs // // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. pub mod get_services; pub mod service; #[jacquard_derive::lexicon] #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct LabelerPolicies<'a> { ///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 = "std::option::Option::is_none")] #[serde(borrow)] pub label_value_definitions: std::option::Option< Vec>, >, ///The label values which this labeler publishes. May include global or custom labels. #[serde(borrow)] pub label_values: Vec>, } impl jacquard_common::IntoStatic for LabelerPolicies<'_> { type Output = LabelerPolicies<'static>; fn into_static(self) -> Self::Output { LabelerPolicies { label_value_definitions: self.label_value_definitions.into_static(), label_values: self.label_values.into_static(), extra_data: self.extra_data.into_static(), } } } #[jacquard_derive::lexicon] #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct LabelerView<'a> { #[serde(borrow)] pub cid: jacquard_common::types::string::Cid<'a>, #[serde(borrow)] pub creator: crate::app_bsky::actor::ProfileView<'a>, pub indexed_at: jacquard_common::types::string::Datetime, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub labels: std::option::Option>>, #[serde(skip_serializing_if = "std::option::Option::is_none")] pub like_count: std::option::Option, #[serde(borrow)] pub uri: jacquard_common::types::string::AtUri<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub viewer: std::option::Option>, } impl jacquard_common::IntoStatic for LabelerView<'_> { type Output = LabelerView<'static>; fn into_static(self) -> Self::Output { LabelerView { cid: self.cid.into_static(), creator: self.creator.into_static(), indexed_at: self.indexed_at.into_static(), labels: self.labels.into_static(), like_count: self.like_count.into_static(), uri: self.uri.into_static(), viewer: self.viewer.into_static(), extra_data: self.extra_data.into_static(), } } } #[jacquard_derive::lexicon] #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct LabelerViewDetailed<'a> { #[serde(borrow)] pub cid: jacquard_common::types::string::Cid<'a>, #[serde(borrow)] pub creator: crate::app_bsky::actor::ProfileView<'a>, pub indexed_at: jacquard_common::types::string::Datetime, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub labels: std::option::Option>>, #[serde(skip_serializing_if = "std::option::Option::is_none")] pub like_count: std::option::Option, #[serde(borrow)] pub policies: crate::app_bsky::labeler::LabelerPolicies<'a>, ///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 = "std::option::Option::is_none")] #[serde(borrow)] pub reason_types: std::option::Option< Vec>, >, ///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 = "std::option::Option::is_none")] #[serde(borrow)] pub subject_collections: std::option::Option< Vec>, >, ///The set of subject types (account, record, etc) this service accepts reports on. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub subject_types: std::option::Option< Vec>, >, #[serde(borrow)] pub uri: jacquard_common::types::string::AtUri<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub viewer: std::option::Option>, } impl jacquard_common::IntoStatic for LabelerViewDetailed<'_> { type Output = LabelerViewDetailed<'static>; fn into_static(self) -> Self::Output { LabelerViewDetailed { cid: self.cid.into_static(), creator: self.creator.into_static(), indexed_at: self.indexed_at.into_static(), labels: self.labels.into_static(), like_count: self.like_count.into_static(), policies: self.policies.into_static(), reason_types: self.reason_types.into_static(), subject_collections: self.subject_collections.into_static(), subject_types: self.subject_types.into_static(), uri: self.uri.into_static(), viewer: self.viewer.into_static(), extra_data: self.extra_data.into_static(), } } } #[jacquard_derive::lexicon] #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct LabelerViewerState<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub like: std::option::Option>, } impl jacquard_common::IntoStatic for LabelerViewerState<'_> { type Output = LabelerViewerState<'static>; fn into_static(self) -> Self::Output { LabelerViewerState { like: self.like.into_static(), extra_data: self.extra_data.into_static(), } } }