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