pub struct RouteConfig {
pub name: String,
pub match: String,
pub target: String,
pub headers: Option<HashMap<String, String>>,
}Expand description
User-supplied route configuration (e.g. from routes.yaml).
Fields§
§name: String§match: StringPattern matched against the Host header (without port).
E.g. "{port:int}.{domain}".
target: StringTarget template, e.g. "127.0.0.1:{port}".
headers: Option<HashMap<String, String>>Header templates. The special key "Host" (case-insensitive)
is surfaced separately on RouteHit::host_header.
Trait Implementations§
Source§impl Clone for RouteConfig
impl Clone for RouteConfig
Source§fn clone(&self) -> RouteConfig
fn clone(&self) -> RouteConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RouteConfig
impl Debug for RouteConfig
Source§impl<'de> Deserialize<'de> for RouteConfig
impl<'de> Deserialize<'de> for RouteConfig
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
Auto Trait Implementations§
impl Freeze for RouteConfig
impl RefUnwindSafe for RouteConfig
impl Send for RouteConfig
impl Sync for RouteConfig
impl Unpin for RouteConfig
impl UnsafeUnpin for RouteConfig
impl UnwindSafe for RouteConfig
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