proto-blue-api 0.3.3

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

use serde::{Deserialize, Serialize};

/// `$type` discriminator for this record on the wire.
pub const TYPE: &str = "app.bsky.graph.verification";

#[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,
    pub created_at: proto_blue_syntax::Datetime,
    pub display_name: String,
    pub handle: proto_blue_syntax::Handle,
    pub subject: proto_blue_syntax::Did,
}

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