atrium_api/chat/bsky/group/
update_join_requests_read.rs1pub const NSID: &str = "chat.bsky.group.updateJoinRequestsRead";
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 InvalidConvo(Option<String>),
18 InsufficientRole(Option<String>),
19}
20impl std::fmt::Display for Error {
21 fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
22 match self {
23 Error::InvalidConvo(msg) => {
24 write!(_f, "InvalidConvo")?;
25 if let Some(msg) = msg {
26 write!(_f, ": {msg}")?;
27 }
28 }
29 Error::InsufficientRole(msg) => {
30 write!(_f, "InsufficientRole")?;
31 if let Some(msg) = msg {
32 write!(_f, ": {msg}")?;
33 }
34 }
35 }
36 Ok(())
37 }
38}