jacquard-api 0.12.0-beta.1

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.

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

#[allow(unused_imports)]
use core::marker::PhantomData;
use jacquard_common::{BosStr, DefaultStr, FromStaticStr};
use jacquard_common::deps::bytes::Bytes;
use jacquard_common::deps::smol_str::SmolStr;
use jacquard_common::types::value::Data;
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<S: BosStr> = ListVideosOutput;
    type Err = jacquard_common::xrpc::GenericError;
}

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<S: BosStr> = ListVideos;
    type Response = ListVideosResponse;
}