pub trait RequestVersionExt {
// Required methods
fn version_info(&self) -> Option<&VersionInfo>;
fn api_version(&self) -> Option<&str>;
fn is_deprecated_version(&self) -> bool;
}
Expand description
Extension trait to get version info from request
Required Methods§
Sourcefn version_info(&self) -> Option<&VersionInfo>
fn version_info(&self) -> Option<&VersionInfo>
Get version information from request
Sourcefn api_version(&self) -> Option<&str>
fn api_version(&self) -> Option<&str>
Get current API version string
Sourcefn is_deprecated_version(&self) -> bool
fn is_deprecated_version(&self) -> bool
Check if current version is deprecated