Skip to main content

atrium_api/chat/bsky/group/
withdraw_join_request.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `chat.bsky.group.withdrawJoinRequest` namespace.
3pub const NSID: &str = "chat.bsky.group.withdrawJoinRequest";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct InputData {
7    pub convo_id: String,
8}
9pub type Input = crate::types::Object<InputData>;
10#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
11#[serde(rename_all = "camelCase")]
12pub struct OutputData {}
13pub type Output = crate::types::Object<OutputData>;
14#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
15#[serde(tag = "error", content = "message")]
16pub enum Error {
17    InvalidJoinRequest(Option<String>),
18}
19impl std::fmt::Display for Error {
20    fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
21        match self {
22            Error::InvalidJoinRequest(msg) => {
23                write!(_f, "InvalidJoinRequest")?;
24                if let Some(msg) = msg {
25                    write!(_f, ": {msg}")?;
26                }
27            }
28        }
29        Ok(())
30    }
31}