Skip to main content

jacquard_api/network_slices/slice/
delete_o_auth_client.rs

1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: network.slices.slice.deleteOAuthClient
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8#[allow(unused_imports)]
9use alloc::collections::BTreeMap;
10
11#[allow(unused_imports)]
12use core::marker::PhantomData;
13use jacquard_common::CowStr;
14use jacquard_derive::{IntoStatic, lexicon};
15use serde::{Serialize, Deserialize};
16
17#[lexicon]
18#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
19#[serde(rename_all = "camelCase")]
20pub struct DeleteOAuthClient<'a> {
21    ///OAuth client ID to delete
22    #[serde(borrow)]
23    pub client_id: CowStr<'a>,
24}
25
26
27#[lexicon]
28#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
29#[serde(rename_all = "camelCase")]
30pub struct DeleteOAuthClientOutput<'a> {
31    ///Success confirmation message
32    #[serde(borrow)]
33    pub message: CowStr<'a>,
34}
35
36/// Response type for network.slices.slice.deleteOAuthClient
37pub struct DeleteOAuthClientResponse;
38impl jacquard_common::xrpc::XrpcResp for DeleteOAuthClientResponse {
39    const NSID: &'static str = "network.slices.slice.deleteOAuthClient";
40    const ENCODING: &'static str = "application/json";
41    type Output<'de> = DeleteOAuthClientOutput<'de>;
42    type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
43}
44
45impl<'a> jacquard_common::xrpc::XrpcRequest for DeleteOAuthClient<'a> {
46    const NSID: &'static str = "network.slices.slice.deleteOAuthClient";
47    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
48        "application/json",
49    );
50    type Response = DeleteOAuthClientResponse;
51}
52
53/// Endpoint type for network.slices.slice.deleteOAuthClient
54pub struct DeleteOAuthClientRequest;
55impl jacquard_common::xrpc::XrpcEndpoint for DeleteOAuthClientRequest {
56    const PATH: &'static str = "/xrpc/network.slices.slice.deleteOAuthClient";
57    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
58        "application/json",
59    );
60    type Request<'de> = DeleteOAuthClient<'de>;
61    type Response = DeleteOAuthClientResponse;
62}