pub struct CompatibilityChecker { /* private fields */ }Expand description
Version compatibility checker
Implementations§
Source§impl CompatibilityChecker
impl CompatibilityChecker
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new compatibility checker with no registered strategies or deprecations
Sourcepub fn register_migration(
&mut self,
from: ModelVersion,
to: ModelVersion,
strategy: MigrationStrategy,
)
pub fn register_migration( &mut self, from: ModelVersion, to: ModelVersion, strategy: MigrationStrategy, )
Register a migration strategy for version transition
Sourcepub fn register_deprecated_features(
&mut self,
version: ModelVersion,
features: Vec<String>,
)
pub fn register_deprecated_features( &mut self, version: ModelVersion, features: Vec<String>, )
Register deprecated features for a version
Sourcepub fn register_breaking_changes(
&mut self,
version: ModelVersion,
changes: Vec<String>,
)
pub fn register_breaking_changes( &mut self, version: ModelVersion, changes: Vec<String>, )
Register breaking changes for a version
Sourcepub fn check_compatibility(
&self,
from: &ModelVersion,
to: &ModelVersion,
) -> VersioningResult<CompatibilityReport>
pub fn check_compatibility( &self, from: &ModelVersion, to: &ModelVersion, ) -> VersioningResult<CompatibilityReport>
Check compatibility between two versions
Trait Implementations§
Source§impl Clone for CompatibilityChecker
impl Clone for CompatibilityChecker
Source§fn clone(&self) -> CompatibilityChecker
fn clone(&self) -> CompatibilityChecker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompatibilityChecker
impl Debug for CompatibilityChecker
Auto Trait Implementations§
impl Freeze for CompatibilityChecker
impl RefUnwindSafe for CompatibilityChecker
impl Send for CompatibilityChecker
impl Sync for CompatibilityChecker
impl Unpin for CompatibilityChecker
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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