1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.blebbit.authr.page.updatePage
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 UpdatePageParams<'a> {
21 #[serde(skip_serializing_if = "std::option::Option::is_none")]
22 #[serde(borrow)]
23 #[builder(into)]
24 pub id: 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 Default
37)]
38#[serde(rename_all = "camelCase")]
39pub struct UpdatePage<'a> {
40 #[serde(skip_serializing_if = "std::option::Option::is_none")]
41 #[serde(borrow)]
42 pub name: std::option::Option<jacquard_common::CowStr<'a>>,
43 #[serde(skip_serializing_if = "std::option::Option::is_none")]
44 pub public: std::option::Option<bool>,
45}
46
47#[jacquard_derive::lexicon]
48#[derive(
49 serde::Serialize,
50 serde::Deserialize,
51 Debug,
52 Clone,
53 PartialEq,
54 Eq,
55 jacquard_derive::IntoStatic,
56 Default
57)]
58#[serde(rename_all = "camelCase")]
59pub struct UpdatePageOutput<'a> {
60 #[serde(skip_serializing_if = "std::option::Option::is_none")]
61 #[serde(borrow)]
62 pub content: std::option::Option<jacquard_common::CowStr<'a>>,
63 #[serde(skip_serializing_if = "std::option::Option::is_none")]
64 #[serde(borrow)]
65 pub cuid: std::option::Option<jacquard_common::CowStr<'a>>,
66 #[serde(skip_serializing_if = "std::option::Option::is_none")]
67 #[serde(borrow)]
68 pub name: std::option::Option<jacquard_common::CowStr<'a>>,
69 #[serde(skip_serializing_if = "std::option::Option::is_none")]
70 pub public: std::option::Option<bool>,
71}
72
73///Response type for
74///app.blebbit.authr.page.updatePage
75pub struct UpdatePageResponse;
76impl jacquard_common::xrpc::XrpcResp for UpdatePageResponse {
77 const NSID: &'static str = "app.blebbit.authr.page.updatePage";
78 const ENCODING: &'static str = "application/json";
79 type Output<'de> = UpdatePageOutput<'de>;
80 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
81}
82
83impl<'a> jacquard_common::xrpc::XrpcRequest for UpdatePage<'a> {
84 const NSID: &'static str = "app.blebbit.authr.page.updatePage";
85 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
86 "application/json",
87 );
88 type Response = UpdatePageResponse;
89}
90
91///Endpoint type for
92///app.blebbit.authr.page.updatePage
93pub struct UpdatePageRequest;
94impl jacquard_common::xrpc::XrpcEndpoint for UpdatePageRequest {
95 const PATH: &'static str = "/xrpc/app.blebbit.authr.page.updatePage";
96 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
97 "application/json",
98 );
99 type Request<'de> = UpdatePage<'de>;
100 type Response = UpdatePageResponse;
101}