Skip to main content

openapi_service_fabric/models/
http_host_config.rs

1/*
2 * Service Fabric Client APIs
3 *
4 * Service Fabric REST Client APIs allows management of Service Fabric clusters, applications and services.
5 *
6 * The version of the OpenAPI document: 8.2
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// HttpHostConfig : Describes the hostname properties for http routing.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct HttpHostConfig {
17    /// http hostname config name.
18    #[serde(rename = "name")]
19    pub name: String,
20    /// Route information to use for routing. Routes are processed in the order they are specified. Specify routes that are more specific before routes that can handle general cases.
21    #[serde(rename = "routes")]
22    pub routes: Vec<models::HttpRouteConfig>,
23}
24
25impl HttpHostConfig {
26    /// Describes the hostname properties for http routing.
27    pub fn new(name: String, routes: Vec<models::HttpRouteConfig>) -> HttpHostConfig {
28        HttpHostConfig { name, routes }
29    }
30}