windmill_api/models/
exists_route_request.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ExistsRouteRequest {
16 #[serde(rename = "route_path")]
17 pub route_path: String,
18 #[serde(rename = "http_method")]
19 pub http_method: models::HttpMethod,
20 #[serde(rename = "trigger_path", skip_serializing_if = "Option::is_none")]
21 pub trigger_path: Option<String>,
22 #[serde(rename = "workspaced_route", skip_serializing_if = "Option::is_none")]
23 pub workspaced_route: Option<bool>,
24}
25
26impl ExistsRouteRequest {
27 pub fn new(route_path: String, http_method: models::HttpMethod) -> ExistsRouteRequest {
28 ExistsRouteRequest {
29 route_path,
30 http_method,
31 trigger_path: None,
32 workspaced_route: None,
33 }
34 }
35}
36