atrium_api/app/bsky/contact/
remove_data.rs1pub const NSID: &str = "app.bsky.contact.removeData";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct InputData {}
7pub type Input = crate::types::Object<InputData>;
8#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
9#[serde(rename_all = "camelCase")]
10pub struct OutputData {}
11pub type Output = crate::types::Object<OutputData>;
12#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
13#[serde(tag = "error", content = "message")]
14pub enum Error {
15 InvalidDid(Option<String>),
16 InternalError(Option<String>),
17}
18impl std::fmt::Display for Error {
19 fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
20 match self {
21 Error::InvalidDid(msg) => {
22 write!(_f, "InvalidDid")?;
23 if let Some(msg) = msg {
24 write!(_f, ": {msg}")?;
25 }
26 }
27 Error::InternalError(msg) => {
28 write!(_f, "InternalError")?;
29 if let Some(msg) = msg {
30 write!(_f, ": {msg}")?;
31 }
32 }
33 }
34 Ok(())
35 }
36}