Skip to main content

VersionedInterface

Trait VersionedInterface 

Source
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§

Source

fn version(&self) -> ApiVersion

Get the interface version

Source

fn minimum_version(&self) -> ApiVersion

Get minimum required version

Source

fn deprecated_features(&self) -> Vec<String>

Get deprecated features

Provided Methods§

Source

fn is_compatible_with(&self, version: &ApiVersion) -> bool

Check compatibility with another version

Implementors§