1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.bsky.notification.getUnreadCount
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8#[derive(
9 serde::Serialize,
10 serde::Deserialize,
11 Debug,
12 Clone,
13 PartialEq,
14 Eq,
15 bon::Builder
16)]
17#[builder(start_fn = new)]
18#[serde(rename_all = "camelCase")]
19pub struct GetUnreadCount {
20 #[serde(skip_serializing_if = "std::option::Option::is_none")]
21 pub priority: std::option::Option<bool>,
22 #[serde(skip_serializing_if = "std::option::Option::is_none")]
23 pub seen_at: std::option::Option<jacquard_common::types::string::Datetime>,
24}
25
26impl jacquard_common::IntoStatic for GetUnreadCount {
27 type Output = GetUnreadCount;
28 fn into_static(self) -> Self::Output {
29 self
30 }
31}
32
33#[jacquard_derive::lexicon]
34#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
35#[serde(rename_all = "camelCase")]
36pub struct GetUnreadCountOutput<'a> {
37 pub count: i64,
38}
39
40impl jacquard_common::IntoStatic for GetUnreadCountOutput<'_> {
41 type Output = GetUnreadCountOutput<'static>;
42 fn into_static(self) -> Self::Output {
43 GetUnreadCountOutput {
44 count: self.count.into_static(),
45 extra_data: self.extra_data.into_static(),
46 }
47 }
48}
49
50impl jacquard_common::types::xrpc::XrpcRequest for GetUnreadCount {
51 const NSID: &'static str = "app.bsky.notification.getUnreadCount";
52 const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
53 const OUTPUT_ENCODING: &'static str = "application/json";
54 type Output<'de> = GetUnreadCountOutput<'de>;
55 type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>;
56}