atrium_api/com/atproto/server/
create_invite_codes.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `com.atproto.server.createInviteCodes` namespace.
3pub const NSID: &str = "com.atproto.server.createInviteCodes";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct InputData {
7    pub code_count: i64,
8    #[serde(skip_serializing_if = "core::option::Option::is_none")]
9    pub for_accounts: core::option::Option<Vec<crate::types::string::Did>>,
10    pub use_count: i64,
11}
12pub type Input = crate::types::Object<InputData>;
13#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
14#[serde(rename_all = "camelCase")]
15pub struct OutputData {
16    pub codes: Vec<AccountCodes>,
17}
18pub type Output = crate::types::Object<OutputData>;
19#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
20#[serde(tag = "error", content = "message")]
21pub enum Error {}
22impl std::fmt::Display for Error {
23    fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
24        Ok(())
25    }
26}
27#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
28#[serde(rename_all = "camelCase")]
29pub struct AccountCodesData {
30    pub account: String,
31    pub codes: Vec<String>,
32}
33pub type AccountCodes = crate::types::Object<AccountCodesData>;