// @generated by jacquard-lexicon. DO NOT EDIT.
//
// Lexicon: org.passingreads.book.listDroppedBooks
//
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.

#[allow(unused_imports)]
use alloc::collections::BTreeMap;

#[allow(unused_imports)]
use core::marker::PhantomData;
use jacquard_derive::{IntoStatic, lexicon};
use serde::{Serialize, Deserialize};
use crate::org_passingreads::book::StatefulBook;

#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase")]
pub struct ListDroppedBooksOutput<'a> {
    #[serde(borrow)]
    pub books: Vec<StatefulBook<'a>>,
}

/// XRPC request marker type.

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Copy)]
pub struct ListDroppedBooks;
/// Response type for org.passingreads.book.listDroppedBooks
pub struct ListDroppedBooksResponse;
impl jacquard_common::xrpc::XrpcResp for ListDroppedBooksResponse {
    const NSID: &'static str = "org.passingreads.book.listDroppedBooks";
    const ENCODING: &'static str = "application/json";
    type Output<'de> = ListDroppedBooksOutput<'de>;
    type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
}

impl jacquard_common::xrpc::XrpcRequest for ListDroppedBooks {
    const NSID: &'static str = "org.passingreads.book.listDroppedBooks";
    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
    type Response = ListDroppedBooksResponse;
}

/// Endpoint type for org.passingreads.book.listDroppedBooks
pub struct ListDroppedBooksRequest;
impl jacquard_common::xrpc::XrpcEndpoint for ListDroppedBooksRequest {
    const PATH: &'static str = "/xrpc/org.passingreads.book.listDroppedBooks";
    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
    type Request<'de> = ListDroppedBooks;
    type Response = ListDroppedBooksResponse;
}