A better Rust ATProto crate
at main 3.0 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: app.blebbit.authr.folder.updateFolder 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 UpdateFolderParams<'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 UpdateFolder<'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 UpdateFolderOutput<'a> { 60 #[serde(skip_serializing_if = "std::option::Option::is_none")] 61 #[serde(borrow)] 62 pub cuid: std::option::Option<jacquard_common::CowStr<'a>>, 63 #[serde(skip_serializing_if = "std::option::Option::is_none")] 64 #[serde(borrow)] 65 pub name: std::option::Option<jacquard_common::CowStr<'a>>, 66 #[serde(skip_serializing_if = "std::option::Option::is_none")] 67 pub public: std::option::Option<bool>, 68} 69 70///Response type for 71///app.blebbit.authr.folder.updateFolder 72pub struct UpdateFolderResponse; 73impl jacquard_common::xrpc::XrpcResp for UpdateFolderResponse { 74 const NSID: &'static str = "app.blebbit.authr.folder.updateFolder"; 75 const ENCODING: &'static str = "application/json"; 76 type Output<'de> = UpdateFolderOutput<'de>; 77 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 78} 79 80impl<'a> jacquard_common::xrpc::XrpcRequest for UpdateFolder<'a> { 81 const NSID: &'static str = "app.blebbit.authr.folder.updateFolder"; 82 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 83 "application/json", 84 ); 85 type Response = UpdateFolderResponse; 86} 87 88///Endpoint type for 89///app.blebbit.authr.folder.updateFolder 90pub struct UpdateFolderRequest; 91impl jacquard_common::xrpc::XrpcEndpoint for UpdateFolderRequest { 92 const PATH: &'static str = "/xrpc/app.blebbit.authr.folder.updateFolder"; 93 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 94 "application/json", 95 ); 96 type Request<'de> = UpdateFolder<'de>; 97 type Response = UpdateFolderResponse; 98}