pub struct Route {
pub id: Name,
pub tags: BTreeMap<String, String>,
pub hostnames: Vec<HostnameMatch>,
pub ports: Vec<u16>,
pub rules: Vec<RouteRule>,
}
Expand description
A Route is a policy that describes how a request to a specific virtual host should be routed.
Fields§
§id: Name
A globally unique identifier for this Route.
Route IDs must be valid RFC 1035 DNS label names - they must start with
a lowercase ascii character, and can only contain lowercase ascii
alphanumeric characters and the -
character.
A list of arbitrary tags that can be added to a Route.
hostnames: Vec<HostnameMatch>
The hostnames that match this Route.
ports: Vec<u16>
The ports that match this Route.
rules: Vec<RouteRule>
The rules that determine whether a request matches and where traffic should be routed.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Route
impl<'de> Deserialize<'de> for Route
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Route
Auto Trait Implementations§
impl Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnwindSafe for Route
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more