Skip to main content

lta/get_traffic_flow/
parts.rs

1// @generated by satay. Do not edit by hand.
2#![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/// Returns a link to a JSON file containing hourly average traffic flow, taken from a representative month of every quarter during 0700-0900 hours.
12/// **Update freq**: Quarterly
13#[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/// Returns a link to a JSON file containing hourly average traffic flow, taken from a representative month of every quarter during 0700-0900 hours.
26/// **Update freq**: Quarterly
27#[derive(Debug, Clone, PartialEq)]
28pub enum GetTrafficFlowResponse {
29    /// Successful Traffic Flow response.
30    Ok(Vec<String>),
31    UnexpectedStatus(http::StatusCode, Vec<u8>),
32}
33/// Returns a link to a JSON file containing hourly average traffic flow, taken from a representative month of every quarter during 0700-0900 hours.
34/// **Update freq**: Quarterly
35pub 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}