pub struct Route {
pub host: Option<String>,
pub id: Option<String>,
pub middlewares: Option<Vec<String>>,
pub path_prefix: Option<String>,
pub priority: Option<i32>,
pub service: Option<String>,
pub tls: Option<bool>,
}Fields§
§host: Option<String>Host is the exact hostname this route matches, lowercased with any trailing dot stripped. It is a GLOBALLY unique claim — one route across the whole edge may hold a host, so no tenant can hijack another’s.
id: Option<String>ID identifies the route within the org: [A-Za-z0-9-_.], at most 128 chars. A create that omits it gets a generated one.
middlewares: Option<Vec<String>>Middlewares are the ids of the edge transforms to apply, in this order, before the request reaches the service. At most 16.
path_prefix: Option<String>PathPrefix narrows the match to requests under this path; it must start with "/". Empty matches every path on the host.
priority: Option<i32>Priority orders routes that share a host: higher wins, and equal priorities fall back to the longer PathPrefix.
service: Option<String>Service is the id of the backend pool this route dispatches to. A route naming a service that does not exist is skipped at compile, not served.
tls: Option<bool>TLS asks the edge to terminate TLS for Host with an ACME-managed certificate.