Skip to main content

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

1// Generated by atproto-codegen. Do not edit.
2//! Lexicon: com.atproto.server.getAccountInviteCodes
3
4use serde::{Deserialize, Serialize};
5
6/// Get all invite codes for the current account. Requires auth.
7/// XRPC Query: com.atproto.server.getAccountInviteCodes
8#[derive(Debug, Clone, Serialize, Deserialize)]
9#[serde(rename_all = "camelCase")]
10pub struct Params {
11    #[serde(skip_serializing_if = "Option::is_none")]
12    pub create_available: Option<bool>,
13    #[serde(skip_serializing_if = "Option::is_none")]
14    pub include_used: Option<bool>,
15}
16
17#[derive(Debug, Clone, Serialize, Deserialize)]
18#[serde(rename_all = "camelCase")]
19pub struct Output {
20    pub codes: Vec<crate::com::atproto::server::defs::InviteCode>,
21}