// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: tools.ozone.signature.searchAccounts // // 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 SearchAccounts<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] pub limit: std::option::Option, #[serde(borrow)] pub values: Vec>, } #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic )] #[serde(rename_all = "camelCase")] pub struct SearchAccountsOutput<'a> { #[serde(borrow)] pub accounts: Vec>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub cursor: std::option::Option>, } ///Response type for ///tools.ozone.signature.searchAccounts pub struct SearchAccountsResponse; impl jacquard_common::xrpc::XrpcResp for SearchAccountsResponse { const NSID: &'static str = "tools.ozone.signature.searchAccounts"; const ENCODING: &'static str = "application/json"; type Output<'de> = SearchAccountsOutput<'de>; type Err<'de> = jacquard_common::xrpc::GenericError<'de>; } impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SearchAccounts<'de> { const NSID: &'static str = "tools.ozone.signature.searchAccounts"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = SearchAccountsResponse; } ///Endpoint type for ///tools.ozone.signature.searchAccounts pub struct SearchAccountsRequest; impl jacquard_common::xrpc::XrpcEndpoint for SearchAccountsRequest { const PATH: &'static str = "/xrpc/tools.ozone.signature.searchAccounts"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Request<'de> = SearchAccounts<'de>; type Response = SearchAccountsResponse; }