atrium_api/com/atproto/admin/
send_email.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `com.atproto.admin.sendEmail` namespace.
3pub const NSID: &str = "com.atproto.admin.sendEmail";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct InputData {
7    ///Additional comment by the sender that won't be used in the email itself but helpful to provide more context for moderators/reviewers
8    #[serde(skip_serializing_if = "core::option::Option::is_none")]
9    pub comment: core::option::Option<String>,
10    pub content: String,
11    pub recipient_did: crate::types::string::Did,
12    pub sender_did: crate::types::string::Did,
13    #[serde(skip_serializing_if = "core::option::Option::is_none")]
14    pub subject: core::option::Option<String>,
15}
16pub type Input = crate::types::Object<InputData>;
17#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
18#[serde(rename_all = "camelCase")]
19pub struct OutputData {
20    pub sent: bool,
21}
22pub type Output = crate::types::Object<OutputData>;
23#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
24#[serde(tag = "error", content = "message")]
25pub enum Error {}
26impl std::fmt::Display for Error {
27    fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
28        Ok(())
29    }
30}