jacquard_api/app_bsky/graph/
mute_thread.rs

1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.bsky.graph.muteThread
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8#[jacquard_derive::lexicon]
9#[derive(
10    serde::Serialize,
11    serde::Deserialize,
12    Debug,
13    Clone,
14    PartialEq,
15    Eq,
16    bon::Builder,
17    jacquard_derive::IntoStatic
18)]
19#[serde(rename_all = "camelCase")]
20#[builder(start_fn = new)]
21pub struct MuteThread<'a> {
22    #[serde(borrow)]
23    pub root: jacquard_common::types::string::AtUri<'a>,
24    #[serde(flatten)]
25    #[serde(borrow)]
26    #[builder(default)]
27    pub extra_data: ::std::collections::BTreeMap<
28        ::jacquard_common::smol_str::SmolStr,
29        ::jacquard_common::types::value::Data<'a>,
30    >,
31}
32
33///Response type for
34///app.bsky.graph.muteThread
35pub struct MuteThreadResponse;
36impl jacquard_common::xrpc::XrpcResp for MuteThreadResponse {
37    const NSID: &'static str = "app.bsky.graph.muteThread";
38    const ENCODING: &'static str = "application/json";
39    type Output<'de> = ();
40    type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
41}
42
43impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for MuteThread<'de> {
44    const NSID: &'static str = "app.bsky.graph.muteThread";
45    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
46        "application/json",
47    );
48    type Response = MuteThreadResponse;
49}
50
51///Endpoint type for
52///app.bsky.graph.muteThread
53pub struct MuteThreadRequest;
54impl jacquard_common::xrpc::XrpcEndpoint for MuteThreadRequest {
55    const PATH: &'static str = "/xrpc/app.bsky.graph.muteThread";
56    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
57        "application/json",
58    );
59    type Request<'de> = MuteThread<'de>;
60    type Response = MuteThreadResponse;
61}