atrium_api/app/bsky/labeler/
defs.rs#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct LabelerPoliciesData {
#[serde(skip_serializing_if = "Option::is_none")]
pub label_value_definitions: Option<
Vec<crate::com::atproto::label::defs::LabelValueDefinition>,
>,
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 = "Option::is_none")]
pub labels: Option<Vec<crate::com::atproto::label::defs::Label>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub like_count: Option<usize>,
pub uri: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub viewer: 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 = "Option::is_none")]
pub labels: Option<Vec<crate::com::atproto::label::defs::Label>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub like_count: Option<usize>,
pub policies: crate::app::bsky::labeler::defs::LabelerPolicies,
pub uri: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub viewer: 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 = "Option::is_none")]
pub like: Option<String>,
}
pub type LabelerViewerState = crate::types::Object<LabelerViewerStateData>;