1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.blebbit.authr.folder.createFolder
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 jacquard_derive::IntoStatic,
17 Default
18)]
19#[serde(rename_all = "camelCase")]
20pub struct CreateFolder<'a> {
21 #[serde(skip_serializing_if = "std::option::Option::is_none")]
22 #[serde(borrow)]
23 pub name: std::option::Option<jacquard_common::CowStr<'a>>,
24 #[serde(skip_serializing_if = "std::option::Option::is_none")]
25 pub public: std::option::Option<bool>,
26}
27
28#[jacquard_derive::lexicon]
29#[derive(
30 serde::Serialize,
31 serde::Deserialize,
32 Debug,
33 Clone,
34 PartialEq,
35 Eq,
36 jacquard_derive::IntoStatic,
37 Default
38)]
39#[serde(rename_all = "camelCase")]
40pub struct CreateFolderOutput<'a> {
41 #[serde(skip_serializing_if = "std::option::Option::is_none")]
42 #[serde(borrow)]
43 pub cuid: std::option::Option<jacquard_common::CowStr<'a>>,
44 #[serde(skip_serializing_if = "std::option::Option::is_none")]
45 #[serde(borrow)]
46 pub name: std::option::Option<jacquard_common::CowStr<'a>>,
47 #[serde(skip_serializing_if = "std::option::Option::is_none")]
48 pub public: std::option::Option<bool>,
49}
50
51///Response type for
52///app.blebbit.authr.folder.createFolder
53pub struct CreateFolderResponse;
54impl jacquard_common::xrpc::XrpcResp for CreateFolderResponse {
55 const NSID: &'static str = "app.blebbit.authr.folder.createFolder";
56 const ENCODING: &'static str = "application/json";
57 type Output<'de> = CreateFolderOutput<'de>;
58 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
59}
60
61impl<'a> jacquard_common::xrpc::XrpcRequest for CreateFolder<'a> {
62 const NSID: &'static str = "app.blebbit.authr.folder.createFolder";
63 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
64 "application/json",
65 );
66 type Response = CreateFolderResponse;
67}
68
69///Endpoint type for
70///app.blebbit.authr.folder.createFolder
71pub struct CreateFolderRequest;
72impl jacquard_common::xrpc::XrpcEndpoint for CreateFolderRequest {
73 const PATH: &'static str = "/xrpc/app.blebbit.authr.folder.createFolder";
74 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
75 "application/json",
76 );
77 type Request<'de> = CreateFolder<'de>;
78 type Response = CreateFolderResponse;
79}