proto-blue-api 0.3.2

AT Protocol high-level API: agent, rich text, moderation, generated types
Documentation
// Generated by atproto-codegen. Do not edit.
//! Lexicon: com.germnetwork.declaration
#![allow(clippy::pedantic, clippy::nursery, clippy::all)]

use serde::{Deserialize, Serialize};

/// `$type` discriminator for this record on the wire.
pub const TYPE: &str = "com.germnetwork.declaration";

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Main {
    /// The `$type` discriminator. Defaults to [`TYPE`] on construction.
    #[serde(rename = "$type", default = "default_type")]
    pub r#type: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub continuity_proofs: Option<Vec<Vec<u8>>>,
    pub current_key: Vec<u8>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub key_package: Option<Vec<u8>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub message_me: Option<MessageMe>,
    pub version: String,
}

fn default_type() -> String {
    TYPE.to_string()
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MessageMe {
    pub message_me_url: String,
    pub show_button_to: String,
}