pub trait ExtensionsExt: Sealed {
// Required method
fn uri_template_label(&self) -> Option<UriTemplateLabel>;
}Expand description
Extensions for http::Extensions.
Required Methods§
Sourcefn uri_template_label(&self) -> Option<UriTemplateLabel>
fn uri_template_label(&self) -> Option<UriTemplateLabel>
Returns the URI template label from extensions, if available.
This method checks for a template label in the following order:
- From an explicit
UriTemplateLabelextension - From a
PathAndQuerylabel (if set via#[templated(label = "...")]) - From a
PathAndQuerytemplate string
Returns None if no template information is available.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".