pub trait VersionedInterface {
// Required methods
fn version(&self) -> ApiVersion;
fn minimum_version(&self) -> ApiVersion;
fn deprecated_features(&self) -> Vec<String>;
// Provided method
fn is_compatible_with(&self, version: &ApiVersion) -> bool { ... }
}Expand description
Trait for versioned interfaces
Required Methods§
Sourcefn version(&self) -> ApiVersion
fn version(&self) -> ApiVersion
Get the interface version
Sourcefn minimum_version(&self) -> ApiVersion
fn minimum_version(&self) -> ApiVersion
Get minimum required version
Sourcefn deprecated_features(&self) -> Vec<String>
fn deprecated_features(&self) -> Vec<String>
Get deprecated features
Provided Methods§
Sourcefn is_compatible_with(&self, version: &ApiVersion) -> bool
fn is_compatible_with(&self, version: &ApiVersion) -> bool
Check compatibility with another version