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: com.atproto.server.defs
#![allow(clippy::pedantic, clippy::nursery, clippy::all)]

use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct InviteCode {
    pub available: i64,
    pub code: String,
    pub created_at: proto_blue_syntax::Datetime,
    pub created_by: String,
    pub disabled: bool,
    pub for_account: String,
    pub uses: Vec<InviteCodeUse>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct InviteCodeUse {
    pub used_at: proto_blue_syntax::Datetime,
    pub used_by: proto_blue_syntax::Did,
}