// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: app.bsky.graph.searchStarterPacks // // 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 SearchStarterPacks<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] #[builder(into)] pub cursor: std::option::Option>, ///(default: 25, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] pub limit: std::option::Option, #[serde(borrow)] #[builder(into)] pub q: jacquard_common::CowStr<'a>, } #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic )] #[serde(rename_all = "camelCase")] pub struct SearchStarterPacksOutput<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub cursor: std::option::Option>, #[serde(borrow)] pub starter_packs: Vec>, } ///Response type for ///app.bsky.graph.searchStarterPacks pub struct SearchStarterPacksResponse; impl jacquard_common::xrpc::XrpcResp for SearchStarterPacksResponse { const NSID: &'static str = "app.bsky.graph.searchStarterPacks"; const ENCODING: &'static str = "application/json"; type Output<'de> = SearchStarterPacksOutput<'de>; type Err<'de> = jacquard_common::xrpc::GenericError<'de>; } impl<'a> jacquard_common::xrpc::XrpcRequest for SearchStarterPacks<'a> { const NSID: &'static str = "app.bsky.graph.searchStarterPacks"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = SearchStarterPacksResponse; } ///Endpoint type for ///app.bsky.graph.searchStarterPacks pub struct SearchStarterPacksRequest; impl jacquard_common::xrpc::XrpcEndpoint for SearchStarterPacksRequest { const PATH: &'static str = "/xrpc/app.bsky.graph.searchStarterPacks"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Request<'de> = SearchStarterPacks<'de>; type Response = SearchStarterPacksResponse; }