// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: app.blebbit.authr.group.getGroups // // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder, jacquard_derive::IntoStatic )] #[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetGroups<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] #[builder(into)] pub cursor: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] pub limit: std::option::Option, } #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic, Default )] #[serde(rename_all = "camelCase")] pub struct GetGroupsOutput<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub groups: std::option::Option< Vec>, >, } ///Response type for ///app.blebbit.authr.group.getGroups pub struct GetGroupsResponse; impl jacquard_common::xrpc::XrpcResp for GetGroupsResponse { const NSID: &'static str = "app.blebbit.authr.group.getGroups"; const ENCODING: &'static str = "application/json"; type Output<'de> = GetGroupsOutput<'de>; type Err<'de> = jacquard_common::xrpc::GenericError<'de>; } impl<'a> jacquard_common::xrpc::XrpcRequest for GetGroups<'a> { const NSID: &'static str = "app.blebbit.authr.group.getGroups"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetGroupsResponse; } ///Endpoint type for ///app.blebbit.authr.group.getGroups pub struct GetGroupsRequest; impl jacquard_common::xrpc::XrpcEndpoint for GetGroupsRequest { const PATH: &'static str = "/xrpc/app.blebbit.authr.group.getGroups"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Request<'de> = GetGroups<'de>; type Response = GetGroupsResponse; }