Skip to main content

proto_blue_api/generated/com/atproto/server/
defs.rs

1// Generated by atproto-codegen. Do not edit.
2//! Lexicon: com.atproto.server.defs
3#![allow(clippy::pedantic, clippy::nursery, clippy::all)]
4
5use serde::{Deserialize, Serialize};
6
7#[derive(Debug, Clone, Serialize, Deserialize)]
8#[serde(rename_all = "camelCase")]
9pub struct InviteCode {
10    pub available: i64,
11    pub code: String,
12    pub created_at: proto_blue_syntax::Datetime,
13    pub created_by: String,
14    pub disabled: bool,
15    pub for_account: String,
16    pub uses: Vec<InviteCodeUse>,
17}
18
19#[derive(Debug, Clone, Serialize, Deserialize)]
20#[serde(rename_all = "camelCase")]
21pub struct InviteCodeUse {
22    pub used_at: proto_blue_syntax::Datetime,
23    pub used_by: proto_blue_syntax::Did,
24}