use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ExistsRouteRequest {
#[serde(rename = "route_path")]
pub route_path: String,
#[serde(rename = "http_method")]
pub http_method: models::HttpMethod,
#[serde(rename = "trigger_path", skip_serializing_if = "Option::is_none")]
pub trigger_path: Option<String>,
#[serde(rename = "workspaced_route", skip_serializing_if = "Option::is_none")]
pub workspaced_route: Option<bool>,
}
impl ExistsRouteRequest {
pub fn new(route_path: String, http_method: models::HttpMethod) -> ExistsRouteRequest {
ExistsRouteRequest {
route_path,
http_method,
trigger_path: None,
workspaced_route: None,
}
}
}