rename Condition into RedirectCondition in internal model

This commit is contained in:
Alex Auvolat
2025-02-14 13:21:10 +01:00
parent 3151695011
commit 62a3003cca
2 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -185,12 +185,12 @@ mod v2 {
#[derive(PartialEq, Eq, Clone, Debug, Serialize, Deserialize)]
pub struct RoutingRule {
pub condition: Option<Condition>,
pub condition: Option<RedirectCondition>,
pub redirect: Redirect,
}
#[derive(PartialEq, Eq, Clone, Debug, Serialize, Deserialize)]
pub struct Condition {
pub struct RedirectCondition {
pub http_error_code: Option<u16>,
pub prefix: Option<String>,
}