1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.rocksky.googledrive.getFiles
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 GetFiles<'a> {
21 #[serde(skip_serializing_if = "std::option::Option::is_none")]
22 #[serde(borrow)]
23 #[builder(into)]
24 pub at: std::option::Option<jacquard_common::CowStr<'a>>,
25}
26
27#[jacquard_derive::lexicon]
28#[derive(
29 serde::Serialize,
30 serde::Deserialize,
31 Debug,
32 Clone,
33 PartialEq,
34 Eq,
35 jacquard_derive::IntoStatic
36)]
37#[serde(rename_all = "camelCase")]
38pub struct GetFilesOutput<'a> {
39 #[serde(flatten)]
40 #[serde(borrow)]
41 pub value: crate::app_rocksky::googledrive::FileListView<'a>,
42}
43
44///Response type for
45///app.rocksky.googledrive.getFiles
46pub struct GetFilesResponse;
47impl jacquard_common::xrpc::XrpcResp for GetFilesResponse {
48 const NSID: &'static str = "app.rocksky.googledrive.getFiles";
49 const ENCODING: &'static str = "application/json";
50 type Output<'de> = GetFilesOutput<'de>;
51 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
52}
53
54impl<'a> jacquard_common::xrpc::XrpcRequest for GetFiles<'a> {
55 const NSID: &'static str = "app.rocksky.googledrive.getFiles";
56 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
57 type Response = GetFilesResponse;
58}
59
60///Endpoint type for
61///app.rocksky.googledrive.getFiles
62pub struct GetFilesRequest;
63impl jacquard_common::xrpc::XrpcEndpoint for GetFilesRequest {
64 const PATH: &'static str = "/xrpc/app.rocksky.googledrive.getFiles";
65 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
66 type Request<'de> = GetFiles<'de>;
67 type Response = GetFilesResponse;
68}