1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.bsky.feed.postgate
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8///Disables embedding of this post.
9#[jacquard_derive::lexicon]
10#[derive(
11 serde::Serialize,
12 serde::Deserialize,
13 Debug,
14 Clone,
15 PartialEq,
16 Eq,
17 jacquard_derive::IntoStatic
18)]
19#[serde(rename_all = "camelCase")]
20pub struct DisableRule<'a> {}
21///Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository.
22#[jacquard_derive::lexicon]
23#[derive(
24 serde::Serialize,
25 serde::Deserialize,
26 Debug,
27 Clone,
28 PartialEq,
29 Eq,
30 jacquard_derive::IntoStatic
31)]
32#[serde(rename_all = "camelCase")]
33pub struct Postgate<'a> {
34 pub created_at: jacquard_common::types::string::Datetime,
35 ///List of AT-URIs embedding this post that the author has detached from.
36 #[serde(skip_serializing_if = "std::option::Option::is_none")]
37 #[serde(borrow)]
38 pub detached_embedding_uris: std::option::Option<
39 Vec<jacquard_common::types::string::AtUri<'a>>,
40 >,
41 ///List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed.
42 #[serde(skip_serializing_if = "std::option::Option::is_none")]
43 #[serde(borrow)]
44 pub embedding_rules: std::option::Option<
45 Vec<jacquard_common::types::value::Data<'a>>,
46 >,
47 ///Reference (AT-URI) to the post record.
48 #[serde(borrow)]
49 pub post: jacquard_common::types::string::AtUri<'a>,
50}
51
52impl jacquard_common::types::collection::Collection for Postgate<'_> {
53 const NSID: &'static str = "app.bsky.feed.postgate";
54}