jacquard-api 0.10.2

Generated AT Protocol API bindings for Jacquard
Documentation
// @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.

#[derive(
    serde::Serialize,
    serde::Deserialize,
    Debug,
    Clone,
    PartialEq,
    Eq,
    jacquard_derive::IntoStatic
)]
#[serde(rename_all = "camelCase")]
pub struct ListVideos;
/// The list of videos
#[derive(
    serde::Serialize,
    serde::Deserialize,
    Debug,
    Clone,
    PartialEq,
    Eq,
    jacquard_derive::IntoStatic
)]
#[serde(rename_all = "camelCase")]
pub struct ListVideosOutput {
    pub body: jacquard_common::deps::bytes::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;
}