Skip to main content

jacquard_api/chat_bsky/convo/
delete_message_for_self.rs

1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: chat.bsky.convo.deleteMessageForSelf
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8#[allow(unused_imports)]
9use alloc::collections::BTreeMap;
10
11#[allow(unused_imports)]
12use core::marker::PhantomData;
13use jacquard_common::CowStr;
14use jacquard_derive::{IntoStatic, lexicon};
15use serde::{Serialize, Deserialize};
16use crate::chat_bsky::convo::DeletedMessageView;
17
18#[lexicon]
19#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
20#[serde(rename_all = "camelCase")]
21pub struct DeleteMessageForSelf<'a> {
22    #[serde(borrow)]
23    pub convo_id: CowStr<'a>,
24    #[serde(borrow)]
25    pub message_id: CowStr<'a>,
26}
27
28
29#[lexicon]
30#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
31#[serde(rename_all = "camelCase")]
32pub struct DeleteMessageForSelfOutput<'a> {
33    #[serde(flatten)]
34    #[serde(borrow)]
35    pub value: DeletedMessageView<'a>,
36}
37
38/// Response type for chat.bsky.convo.deleteMessageForSelf
39pub struct DeleteMessageForSelfResponse;
40impl jacquard_common::xrpc::XrpcResp for DeleteMessageForSelfResponse {
41    const NSID: &'static str = "chat.bsky.convo.deleteMessageForSelf";
42    const ENCODING: &'static str = "application/json";
43    type Output<'de> = DeleteMessageForSelfOutput<'de>;
44    type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
45}
46
47impl<'a> jacquard_common::xrpc::XrpcRequest for DeleteMessageForSelf<'a> {
48    const NSID: &'static str = "chat.bsky.convo.deleteMessageForSelf";
49    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
50        "application/json",
51    );
52    type Response = DeleteMessageForSelfResponse;
53}
54
55/// Endpoint type for chat.bsky.convo.deleteMessageForSelf
56pub struct DeleteMessageForSelfRequest;
57impl jacquard_common::xrpc::XrpcEndpoint for DeleteMessageForSelfRequest {
58    const PATH: &'static str = "/xrpc/chat.bsky.convo.deleteMessageForSelf";
59    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
60        "application/json",
61    );
62    type Request<'de> = DeleteMessageForSelf<'de>;
63    type Response = DeleteMessageForSelfResponse;
64}