Skip to main content

dtz_containers/models/
service_rewrite.rs

1/*
2 * DTZ Containers
3 *
4 * a generated client for the DTZ Containers API
5 *
6 * Contact: jens@apimeister.com
7 * Generated by: https://openapi-generator.tech
8 */
9
10#[allow(unused_imports)]
11use crate::models;
12#[allow(unused_imports)]
13use serde::{Deserialize, Serialize};
14
15/// ServiceRewrite : provids url rewriting capabilities
16#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
17pub struct ServiceRewrite {
18    /// regex to match the incoming uri
19    #[serde(rename = "source")]
20    pub source: String,
21    /// replacement value
22    #[serde(rename = "target")]
23    pub target: String,
24}
25
26impl ServiceRewrite {
27    /// provids url rewriting capabilities
28    pub fn new(source: String, target: String) -> ServiceRewrite {
29        ServiceRewrite {
30            source,
31            target,
32        }
33    }
34}
35