pub struct RouteInfo {
pub service: String,
pub endpoint: String,
pub host: Option<String>,
pub path_prefix: String,
pub strip_prefix: bool,
pub protocol: String,
pub expose: String,
pub backends: Vec<String>,
pub target_port: u16,
}Expand description
Information about a single registered route.
Fields§
§service: StringOwning service name.
endpoint: StringEndpoint name within the service.
host: Option<String>Host pattern (e.g. *.example.com), or null for any host.
path_prefix: StringPath prefix matched by this route.
strip_prefix: boolWhether the matched prefix is stripped before forwarding.
protocol: StringProtocol (http, https, tcp, etc.).
expose: StringExposure type (public / internal).
backends: Vec<String>Backend addresses currently assigned to this route.
target_port: u16Container target port.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RouteInfo
impl<'de> Deserialize<'de> for RouteInfo
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 RouteInfo
impl RefUnwindSafe for RouteInfo
impl Send for RouteInfo
impl Sync for RouteInfo
impl Unpin for RouteInfo
impl UnsafeUnpin for RouteInfo
impl UnwindSafe for RouteInfo
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