1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.bsky.graph.getFollows
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 GetFollows<'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 GetFollowsOutput<'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 follows: 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.getFollows
55pub struct GetFollowsResponse;
56impl jacquard_common::xrpc::XrpcResp for GetFollowsResponse {
57 const NSID: &'static str = "app.bsky.graph.getFollows";
58 const ENCODING: &'static str = "application/json";
59 type Output<'de> = GetFollowsOutput<'de>;
60 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
61}
62
63impl<'a> jacquard_common::xrpc::XrpcRequest for GetFollows<'a> {
64 const NSID: &'static str = "app.bsky.graph.getFollows";
65 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
66 type Response = GetFollowsResponse;
67}
68
69///Endpoint type for
70///app.bsky.graph.getFollows
71pub struct GetFollowsRequest;
72impl jacquard_common::xrpc::XrpcEndpoint for GetFollowsRequest {
73 const PATH: &'static str = "/xrpc/app.bsky.graph.getFollows";
74 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
75 type Request<'de> = GetFollows<'de>;
76 type Response = GetFollowsResponse;
77}