atrium_api/com/atproto/server/
reserve_signing_key.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `com.atproto.server.reserveSigningKey` namespace.
3pub const NSID: &str = "com.atproto.server.reserveSigningKey";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct InputData {
7    ///The DID to reserve a key for.
8    #[serde(skip_serializing_if = "core::option::Option::is_none")]
9    pub did: core::option::Option<crate::types::string::Did>,
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    ///The public key for the reserved signing key, in did:key serialization.
16    pub signing_key: String,
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}