// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: buzz.bookhive.getProfile // // 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 GetProfile<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] #[builder(into)] pub did: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] #[builder(into)] pub handle: std::option::Option>, } #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic )] #[serde(rename_all = "camelCase")] pub struct GetProfileOutput<'a> { ///The user's activity #[serde(borrow)] pub activity: Vec>, ///All books in the user's library #[serde(borrow)] pub books: Vec>, ///The user's profile #[serde(borrow)] pub profile: crate::buzz_bookhive::Profile<'a>, } ///Response type for ///buzz.bookhive.getProfile pub struct GetProfileResponse; impl jacquard_common::xrpc::XrpcResp for GetProfileResponse { const NSID: &'static str = "buzz.bookhive.getProfile"; const ENCODING: &'static str = "application/json"; type Output<'de> = GetProfileOutput<'de>; type Err<'de> = jacquard_common::xrpc::GenericError<'de>; } impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetProfile<'de> { const NSID: &'static str = "buzz.bookhive.getProfile"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetProfileResponse; }