Struct consul_rs::config_entry::ExposePath [−][src]
pub struct ExposePath {
pub ListenerPort: Option<usize>,
pub Path: Option<String>,
pub LocalPathPort: Option<usize>,
pub Protocol: Option<String>,
pub ParsedFromCheck: Option<bool>,
}Fields
ListenerPort: Option<usize>ListenerPort defines the port of the proxy’s listener for exposed paths.
Path: Option<String>Path is the path to expose through the proxy, ie. “/metrics.”
LocalPathPort: Option<usize>LocalPathPort is the port that the service is listening on for the given path.
Protocol: Option<String>Protocol describes the upstream’s service protocol. Valid values are “http” and “http2”, defaults to “http”
ParsedFromCheck: Option<bool>ParsedFromCheck is set if this path was parsed from a registered check
Trait Implementations
Returns the “default value” for a type. Read more
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 RefUnwindSafe for ExposePathimpl Send for ExposePathimpl Sync for ExposePathimpl Unpin for ExposePathimpl UnwindSafe for ExposePathBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> VAttaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more