jacquard_api/app_bsky/notification/
declaration.rs

1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.bsky.notification.declaration
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8///A declaration of the user's choices related to notifications that can be produced by them.
9#[jacquard_derive::lexicon]
10#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
11#[serde(rename_all = "camelCase")]
12pub struct Declaration<'a> {
13    ///A declaration of the user's preference for allowing activity subscriptions from other users. Absence of a record implies 'followers'.
14    #[serde(borrow)]
15    pub allow_subscriptions: jacquard_common::CowStr<'a>,
16}
17
18impl jacquard_common::types::collection::Collection for Declaration<'_> {
19    const NSID: &'static str = "app.bsky.notification.declaration";
20}
21
22impl jacquard_common::IntoStatic for Declaration<'_> {
23    type Output = Declaration<'static>;
24    fn into_static(self) -> Self::Output {
25        Declaration {
26            allow_subscriptions: self.allow_subscriptions.into_static(),
27            extra_data: self.extra_data.into_static(),
28        }
29    }
30}