atrium_api/com/atproto/server/
create_invite_code.rs

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