pub struct HttpRouteGroup {
pub service_name: String,
pub host: String,
pub port: u32,
pub routes: Vec<HttpRouteConfig>,
}Expand description
A batch of HTTP routes targeting a specific host:port. Used to register routes that proxy to a different backend than the service itself (e.g., a frontend dev server, static file server, or external API).
Each group needs its own service_name because the gateway maps
service_name → endpoint URL (one URL per service). Routes targeting
different backends must use different service names.
Fields§
§service_name: StringService name for this group (used by the gateway for endpoint lookup)
host: StringTarget host (e.g., “127.0.0.1”)
port: u32Target port (e.g., 3222)
routes: Vec<HttpRouteConfig>Routes to register for this target
Implementations§
Trait Implementations§
Source§impl Clone for HttpRouteGroup
impl Clone for HttpRouteGroup
Source§fn clone(&self) -> HttpRouteGroup
fn clone(&self) -> HttpRouteGroup
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 moreAuto Trait Implementations§
impl Freeze for HttpRouteGroup
impl RefUnwindSafe for HttpRouteGroup
impl Send for HttpRouteGroup
impl Sync for HttpRouteGroup
impl Unpin for HttpRouteGroup
impl UnsafeUnpin for HttpRouteGroup
impl UnwindSafe for HttpRouteGroup
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