Skip to main content

proto_blue_api/generated/com/germnetwork/
declaration.rs

1// Generated by atproto-codegen. Do not edit.
2//! Lexicon: com.germnetwork.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 = "com.germnetwork.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    #[serde(skip_serializing_if = "Option::is_none")]
17    pub continuity_proofs: Option<Vec<Vec<u8>>>,
18    pub current_key: Vec<u8>,
19    #[serde(skip_serializing_if = "Option::is_none")]
20    pub key_package: Option<Vec<u8>>,
21    #[serde(skip_serializing_if = "Option::is_none")]
22    pub message_me: Option<MessageMe>,
23    pub version: String,
24}
25
26fn default_type() -> String {
27    TYPE.to_string()
28}
29
30#[derive(Debug, Clone, Serialize, Deserialize)]
31#[serde(rename_all = "camelCase")]
32pub struct MessageMe {
33    pub message_me_url: String,
34    pub show_button_to: String,
35}