pub struct CompatibilityChecker { /* private fields */ }
Expand description
Compatibility checker implementation
Implementations§
Source§impl CompatibilityChecker
impl CompatibilityChecker
Sourcepub fn register_version(
&mut self,
apiversion: &ApiVersion,
) -> Result<(), CoreError>
pub fn register_version( &mut self, apiversion: &ApiVersion, ) -> Result<(), CoreError>
Register a version for compatibility checking
Sourcepub fn check_compatibility(
&self,
from_version: &Version,
toversion: &Version,
) -> Result<CompatibilityLevel, CoreError>
pub fn check_compatibility( &self, from_version: &Version, toversion: &Version, ) -> Result<CompatibilityLevel, CoreError>
Check compatibility between two versions
Sourcepub fn get_compatibility_report(
&self,
from_version: &Version,
toversion: &Version,
) -> Result<CompatibilityReport, CoreError>
pub fn get_compatibility_report( &self, from_version: &Version, toversion: &Version, ) -> Result<CompatibilityReport, CoreError>
Get detailed compatibility report
Sourcepub fn add_rule(&mut self, rule: CompatibilityRule)
pub fn add_rule(&mut self, rule: CompatibilityRule)
Add a custom compatibility rule
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompatibilityChecker
impl RefUnwindSafe for CompatibilityChecker
impl Send for CompatibilityChecker
impl Sync for CompatibilityChecker
impl Unpin for CompatibilityChecker
impl UnwindSafe for CompatibilityChecker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more