// @generated by jacquard-lexicon. DO NOT EDIT.
//
// Lexicon: com.5jiji.test.listVideos
//
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.

#[allow(unused_imports)]
use core::marker::PhantomData;
use jacquard_common::deps::bytes::Bytes;
use jacquard_derive::IntoStatic;
use serde::{Serialize, Deserialize};

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase")]
pub struct ListVideos;
/// The list of videos

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase")]
pub struct ListVideosOutput {
    pub body: Bytes,
}

/// Response type for com.5jiji.test.listVideos
pub struct ListVideosResponse;
impl jacquard_common::xrpc::XrpcResp for ListVideosResponse {
    const NSID: &'static str = "com.5jiji.test.listVideos";
    const ENCODING: &'static str = "application/json";
    type Output<'de> = ListVideosOutput;
    type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
}

impl jacquard_common::xrpc::XrpcRequest for ListVideos {
    const NSID: &'static str = "com.5jiji.test.listVideos";
    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
    type Response = ListVideosResponse;
}

/// Endpoint type for com.5jiji.test.listVideos
pub struct ListVideosRequest;
impl jacquard_common::xrpc::XrpcEndpoint for ListVideosRequest {
    const PATH: &'static str = "/xrpc/com.5jiji.test.listVideos";
    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
    type Request<'de> = ListVideos;
    type Response = ListVideosResponse;
}