1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.bsky.graph.block
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8///Record declaring a 'block' relationship against another account. NOTE: blocks are public in Bluesky; see blog posts for details.
9#[jacquard_derive::lexicon]
10#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
11#[serde(rename_all = "camelCase")]
12pub struct Block<'a> {
13 pub created_at: jacquard_common::types::string::Datetime,
14 ///DID of the account to be blocked.
15 #[serde(borrow)]
16 pub subject: jacquard_common::types::string::Did<'a>,
17}
18
19impl jacquard_common::types::collection::Collection for Block<'_> {
20 const NSID: &'static str = "app.bsky.graph.block";
21}
22
23impl jacquard_common::IntoStatic for Block<'_> {
24 type Output = Block<'static>;
25 fn into_static(self) -> Self::Output {
26 Block {
27 created_at: self.created_at.into_static(),
28 subject: self.subject.into_static(),
29 extra_data: self.extra_data.into_static(),
30 }
31 }
32}