atrium_api/chat/bsky/convo/
remove_reaction.rs1pub const NSID: &str = "chat.bsky.convo.removeReaction";
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 message_id: String,
9 pub value: String,
10}
11pub type Input = crate::types::Object<InputData>;
12#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
13#[serde(rename_all = "camelCase")]
14pub struct OutputData {
15 pub message: crate::chat::bsky::convo::defs::MessageView,
16}
17pub type Output = crate::types::Object<OutputData>;
18#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
19#[serde(tag = "error", content = "message")]
20pub enum Error {
21 InvalidConvo(Option<String>),
22 ReactionNotAllowed(Option<String>),
24 ReactionMessageDeleted(Option<String>),
26 ReactionInvalidValue(Option<String>),
28}
29impl std::fmt::Display for Error {
30 fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
31 match self {
32 Error::InvalidConvo(msg) => {
33 write!(_f, "InvalidConvo")?;
34 if let Some(msg) = msg {
35 write!(_f, ": {msg}")?;
36 }
37 }
38 Error::ReactionNotAllowed(msg) => {
39 write!(_f, "ReactionNotAllowed")?;
40 if let Some(msg) = msg {
41 write!(_f, ": {msg}")?;
42 }
43 }
44 Error::ReactionMessageDeleted(msg) => {
45 write!(_f, "ReactionMessageDeleted")?;
46 if let Some(msg) = msg {
47 write!(_f, ": {msg}")?;
48 }
49 }
50 Error::ReactionInvalidValue(msg) => {
51 write!(_f, "ReactionInvalidValue")?;
52 if let Some(msg) = msg {
53 write!(_f, ": {msg}")?;
54 }
55 }
56 }
57 Ok(())
58 }
59}