Skip to main content

atrium_api/com/atproto/server/
list_app_passwords.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `com.atproto.server.listAppPasswords` namespace.
3pub const NSID: &str = "com.atproto.server.listAppPasswords";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct OutputData {
7    pub passwords: Vec<AppPassword>,
8}
9pub type Output = crate::types::Object<OutputData>;
10#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
11#[serde(tag = "error", content = "message")]
12pub enum Error {
13    AccountTakedown(Option<String>),
14}
15impl std::fmt::Display for Error {
16    fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
17        match self {
18            Error::AccountTakedown(msg) => {
19                write!(_f, "AccountTakedown")?;
20                if let Some(msg) = msg {
21                    write!(_f, ": {msg}")?;
22                }
23            }
24        }
25        Ok(())
26    }
27}
28#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
29#[serde(rename_all = "camelCase")]
30pub struct AppPasswordData {
31    pub created_at: crate::types::string::Datetime,
32    pub name: String,
33    #[serde(skip_serializing_if = "core::option::Option::is_none")]
34    pub privileged: core::option::Option<bool>,
35}
36pub type AppPassword = crate::types::Object<AppPasswordData>;