Skip to main content

proto_blue_api/generated/chat/bsky/actor/
declaration.rs

1// Generated by atproto-codegen. Do not edit.
2//! Lexicon: chat.bsky.actor.declaration
3#![allow(clippy::pedantic, clippy::nursery, clippy::all)]
4
5use serde::{Deserialize, Serialize};
6
7/// `$type` discriminator for this record on the wire.
8pub const TYPE: &str = "chat.bsky.actor.declaration";
9
10#[derive(Debug, Clone, Serialize, Deserialize)]
11#[serde(rename_all = "camelCase")]
12pub struct Main {
13    /// The `$type` discriminator. Defaults to [`TYPE`] on construction.
14    #[serde(rename = "$type", default = "default_type")]
15    pub r#type: String,
16    pub allow_incoming: String,
17}
18
19fn default_type() -> String {
20    TYPE.to_string()
21}