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
4use serde::{Deserialize, Serialize};
5
6/// `$type` discriminator for this record on the wire.
7pub const TYPE: &str = "com.germnetwork.declaration";
8
9#[derive(Debug, Clone, Serialize, Deserialize)]
10#[serde(rename_all = "camelCase")]
11pub struct Main {
12    /// The `$type` discriminator. Defaults to [`TYPE`] on construction.
13    #[serde(rename = "$type", default = "default_type")]
14    pub r#type: String,
15    #[serde(skip_serializing_if = "Option::is_none")]
16    pub continuity_proofs: Option<Vec<Vec<u8>>>,
17    pub current_key: Vec<u8>,
18    #[serde(skip_serializing_if = "Option::is_none")]
19    pub key_package: Option<Vec<u8>>,
20    #[serde(skip_serializing_if = "Option::is_none")]
21    pub message_me: Option<MessageMe>,
22    pub version: String,
23}
24
25fn default_type() -> String {
26    TYPE.to_string()
27}
28
29#[derive(Debug, Clone, Serialize, Deserialize)]
30#[serde(rename_all = "camelCase")]
31pub struct MessageMe {
32    pub message_me_url: String,
33    pub show_button_to: String,
34}