1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.bsky.graph.getKnownFollowers
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8#[derive(
9 serde::Serialize,
10 serde::Deserialize,
11 Debug,
12 Clone,
13 PartialEq,
14 Eq,
15 bon::Builder,
16 jacquard_derive::IntoStatic
17)]
18#[builder(start_fn = new)]
19#[serde(rename_all = "camelCase")]
20pub struct GetKnownFollowers<'a> {
21 #[serde(borrow)]
22 pub actor: jacquard_common::types::ident::AtIdentifier<'a>,
23 #[serde(skip_serializing_if = "std::option::Option::is_none")]
24 #[serde(borrow)]
25 #[builder(into)]
26 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
27 ///(default: 50, min: 1, max: 100)
28 #[serde(skip_serializing_if = "std::option::Option::is_none")]
29 pub limit: std::option::Option<i64>,
30}
31
32#[jacquard_derive::lexicon]
33#[derive(
34 serde::Serialize,
35 serde::Deserialize,
36 Debug,
37 Clone,
38 PartialEq,
39 Eq,
40 jacquard_derive::IntoStatic
41)]
42#[serde(rename_all = "camelCase")]
43pub struct GetKnownFollowersOutput<'a> {
44 #[serde(skip_serializing_if = "std::option::Option::is_none")]
45 #[serde(borrow)]
46 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
47 #[serde(borrow)]
48 pub followers: Vec<crate::app_bsky::actor::ProfileView<'a>>,
49 #[serde(borrow)]
50 pub subject: crate::app_bsky::actor::ProfileView<'a>,
51}
52
53///Response type for
54///app.bsky.graph.getKnownFollowers
55pub struct GetKnownFollowersResponse;
56impl jacquard_common::xrpc::XrpcResp for GetKnownFollowersResponse {
57 const NSID: &'static str = "app.bsky.graph.getKnownFollowers";
58 const ENCODING: &'static str = "application/json";
59 type Output<'de> = GetKnownFollowersOutput<'de>;
60 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
61}
62
63impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetKnownFollowers<'de> {
64 const NSID: &'static str = "app.bsky.graph.getKnownFollowers";
65 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
66 type Response = GetKnownFollowersResponse;
67}
68
69///Endpoint type for
70///app.bsky.graph.getKnownFollowers
71pub struct GetKnownFollowersRequest;
72impl jacquard_common::xrpc::XrpcEndpoint for GetKnownFollowersRequest {
73 const PATH: &'static str = "/xrpc/app.bsky.graph.getKnownFollowers";
74 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
75 type Request<'de> = GetKnownFollowers<'de>;
76 type Response = GetKnownFollowersResponse;
77}