lta/get_traffic_flow/
parts.rs1#![allow(
3 clippy::doc_markdown,
4 clippy::missing_errors_doc,
5 clippy::must_use_candidate,
6 clippy::needless_pass_by_value,
7 clippy::return_self_not_must_use,
8 clippy::single_match_else
9)]
10
11#[derive(Debug, Clone, PartialEq)]
14pub struct GetTrafficFlowInput {}
15impl GetTrafficFlowInput {
16 pub fn new() -> Self {
17 Self {}
18 }
19}
20impl Default for GetTrafficFlowInput {
21 fn default() -> Self {
22 Self::new()
23 }
24}
25#[derive(Debug, Clone, PartialEq)]
28pub enum GetTrafficFlowResponse {
29 Ok(Vec<String>),
31 UnexpectedStatus(http::StatusCode, Vec<u8>),
32}
33pub fn get_traffic_flow_parts(
36 _input: GetTrafficFlowInput,
37) -> Result<satay_runtime::RequestParts<()>, satay_runtime::Error> {
38 let mut uri = String::with_capacity(12);
39 uri.push_str("/TrafficFlow");
40 let headers = http::HeaderMap::new();
41 Ok(satay_runtime::RequestParts {
42 method: http::Method::GET,
43 uri,
44 headers,
45 body: (),
46 })
47}