#[non_exhaustive]pub struct UrlDispatchRule {
pub domain: String,
pub path: String,
pub service: String,
/* private fields */
}
Expand description
Rules to match an HTTP request and dispatch that request to a service.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.domain: String
Domain name to match against. The wildcard “*
” is supported if
specified before a period: “*.
”.
Defaults to matching all domains: “*
”.
path: String
Pathname within the host. Must start with a “/
”. A
single “*
” can be included at the end of the path.
The sum of the lengths of the domain and path may not exceed 100 characters.
service: String
Resource ID of a service in this application that should
serve the matched request. The service must already
exist. Example: default
.
Implementations§
Trait Implementations§
Source§impl Clone for UrlDispatchRule
impl Clone for UrlDispatchRule
Source§fn clone(&self) -> UrlDispatchRule
fn clone(&self) -> UrlDispatchRule
Returns a duplicate of the value. Read more
1.0.0 · 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 UrlDispatchRule
impl Debug for UrlDispatchRule
Source§impl Default for UrlDispatchRule
impl Default for UrlDispatchRule
Source§fn default() -> UrlDispatchRule
fn default() -> UrlDispatchRule
Returns the “default value” for a type. Read more
Source§impl Message for UrlDispatchRule
impl Message for UrlDispatchRule
Source§impl PartialEq for UrlDispatchRule
impl PartialEq for UrlDispatchRule
impl StructuralPartialEq for UrlDispatchRule
Auto Trait Implementations§
impl Freeze for UrlDispatchRule
impl RefUnwindSafe for UrlDispatchRule
impl Send for UrlDispatchRule
impl Sync for UrlDispatchRule
impl Unpin for UrlDispatchRule
impl UnwindSafe for UrlDispatchRule
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