1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: network.slices.slice.getJetstreamLogs
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8#[derive(
9 serde::Serialize,
10 serde::Deserialize,
11 Debug,
12 Clone,
13 PartialEq,
14 Eq,
15 bon::Builder,
16 jacquard_derive::IntoStatic
17)]
18#[builder(start_fn = new)]
19#[serde(rename_all = "camelCase")]
20pub struct GetJetstreamLogs<'a> {
21 ///(default: 100, min: 1, max: 1000)
22 #[serde(skip_serializing_if = "std::option::Option::is_none")]
23 pub limit: std::option::Option<i64>,
24 #[serde(skip_serializing_if = "std::option::Option::is_none")]
25 #[serde(borrow)]
26 #[builder(into)]
27 pub slice: std::option::Option<jacquard_common::CowStr<'a>>,
28}
29
30#[jacquard_derive::lexicon]
31#[derive(
32 serde::Serialize,
33 serde::Deserialize,
34 Debug,
35 Clone,
36 PartialEq,
37 Eq,
38 jacquard_derive::IntoStatic
39)]
40#[serde(rename_all = "camelCase")]
41pub struct GetJetstreamLogsOutput<'a> {
42 #[serde(borrow)]
43 pub logs: Vec<crate::network_slices::slice::get_job_logs::LogEntry<'a>>,
44}
45
46///Response type for
47///network.slices.slice.getJetstreamLogs
48pub struct GetJetstreamLogsResponse;
49impl jacquard_common::xrpc::XrpcResp for GetJetstreamLogsResponse {
50 const NSID: &'static str = "network.slices.slice.getJetstreamLogs";
51 const ENCODING: &'static str = "application/json";
52 type Output<'de> = GetJetstreamLogsOutput<'de>;
53 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
54}
55
56impl<'a> jacquard_common::xrpc::XrpcRequest for GetJetstreamLogs<'a> {
57 const NSID: &'static str = "network.slices.slice.getJetstreamLogs";
58 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
59 type Response = GetJetstreamLogsResponse;
60}
61
62///Endpoint type for
63///network.slices.slice.getJetstreamLogs
64pub struct GetJetstreamLogsRequest;
65impl jacquard_common::xrpc::XrpcEndpoint for GetJetstreamLogsRequest {
66 const PATH: &'static str = "/xrpc/network.slices.slice.getJetstreamLogs";
67 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
68 type Request<'de> = GetJetstreamLogs<'de>;
69 type Response = GetJetstreamLogsResponse;
70}