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