dtz-core 2.3.6

a generated client for the DTZ Core API
Documentation
/*
 * DTZ Core Api
 *
 * a generated client for the DTZ Core API
 *
 * Contact: jens@apimeister.com
 * Generated by: https://openapi-generator.tech
 */

#[allow(unused_imports)]
use crate::models;
#[allow(unused_imports)]
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Rewrite {
    /// URI source as Regex (re2 syntax)
    #[serde(rename = "source")]
    pub source: String,
    /// replacement string
    #[serde(rename = "target")]
    pub target: String,
}

impl Rewrite {
    pub fn new(source: String, target: String) -> Rewrite {
        Rewrite {
            source,
            target,
        }
    }
}