A better Rust ATProto crate
at lifetimes 2.6 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: app.blebbit.authr.group.getGroup 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 GetGroup<'a> { 21 #[serde(borrow)] 22 #[builder(into)] 23 pub 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 GetGroupOutput<'a> { 38 #[serde(skip_serializing_if = "std::option::Option::is_none")] 39 #[serde(borrow)] 40 pub cuid: std::option::Option<jacquard_common::CowStr<'a>>, 41 #[serde(skip_serializing_if = "std::option::Option::is_none")] 42 #[serde(borrow)] 43 pub description: std::option::Option<jacquard_common::CowStr<'a>>, 44 #[serde(skip_serializing_if = "std::option::Option::is_none")] 45 #[serde(borrow)] 46 pub display: std::option::Option<jacquard_common::CowStr<'a>>, 47 #[serde(skip_serializing_if = "std::option::Option::is_none")] 48 #[serde(borrow)] 49 pub name: std::option::Option<jacquard_common::CowStr<'a>>, 50 #[serde(skip_serializing_if = "std::option::Option::is_none")] 51 pub public: std::option::Option<bool>, 52} 53 54///Response type for 55///app.blebbit.authr.group.getGroup 56pub struct GetGroupResponse; 57impl jacquard_common::xrpc::XrpcResp for GetGroupResponse { 58 const NSID: &'static str = "app.blebbit.authr.group.getGroup"; 59 const ENCODING: &'static str = "application/json"; 60 type Output<'de> = GetGroupOutput<'de>; 61 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 62} 63 64impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetGroup<'de> { 65 const NSID: &'static str = "app.blebbit.authr.group.getGroup"; 66 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 67 type Response = GetGroupResponse; 68} 69 70///Endpoint type for 71///app.blebbit.authr.group.getGroup 72pub struct GetGroupRequest; 73impl jacquard_common::xrpc::XrpcEndpoint for GetGroupRequest { 74 const PATH: &'static str = "/xrpc/app.blebbit.authr.group.getGroup"; 75 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 76 type Request<'de> = GetGroup<'de>; 77 type Response = GetGroupResponse; 78}