jacquard-api 0.11.0

Generated AT Protocol API bindings for Jacquard
Documentation
// @generated by jacquard-lexicon. DO NOT EDIT.
//
// Lexicon: network.slices.slice.deleteOAuthClient
//
// 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::CowStr;
use jacquard_derive::{IntoStatic, lexicon};
use serde::{Serialize, Deserialize};

#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase")]
pub struct DeleteOAuthClient<'a> {
    ///OAuth client ID to delete
    #[serde(borrow)]
    pub client_id: CowStr<'a>,
}


#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase")]
pub struct DeleteOAuthClientOutput<'a> {
    ///Success confirmation message
    #[serde(borrow)]
    pub message: CowStr<'a>,
}

/// Response type for network.slices.slice.deleteOAuthClient
pub struct DeleteOAuthClientResponse;
impl jacquard_common::xrpc::XrpcResp for DeleteOAuthClientResponse {
    const NSID: &'static str = "network.slices.slice.deleteOAuthClient";
    const ENCODING: &'static str = "application/json";
    type Output<'de> = DeleteOAuthClientOutput<'de>;
    type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
}

impl<'a> jacquard_common::xrpc::XrpcRequest for DeleteOAuthClient<'a> {
    const NSID: &'static str = "network.slices.slice.deleteOAuthClient";
    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
        "application/json",
    );
    type Response = DeleteOAuthClientResponse;
}

/// Endpoint type for network.slices.slice.deleteOAuthClient
pub struct DeleteOAuthClientRequest;
impl jacquard_common::xrpc::XrpcEndpoint for DeleteOAuthClientRequest {
    const PATH: &'static str = "/xrpc/network.slices.slice.deleteOAuthClient";
    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
        "application/json",
    );
    type Request<'de> = DeleteOAuthClient<'de>;
    type Response = DeleteOAuthClientResponse;
}