pub struct VersionManager { /* private fields */ }Expand description
Main version management interface
Implementations§
Source§impl VersionManager
 
impl VersionManager
Sourcepub fn get_version_spec(&self, version: DdexVersion) -> Option<&VersionSpec>
 
pub fn get_version_spec(&self, version: DdexVersion) -> Option<&VersionSpec>
Get version specification
Sourcepub fn detect_version(
    &self,
    xml_content: &str,
) -> Result<VersionDetection, BuildError>
 
pub fn detect_version( &self, xml_content: &str, ) -> Result<VersionDetection, BuildError>
Detect version from XML content
Sourcepub fn is_conversion_supported(
    &self,
    from: DdexVersion,
    to: DdexVersion,
) -> bool
 
pub fn is_conversion_supported( &self, from: DdexVersion, to: DdexVersion, ) -> bool
Check if conversion is supported between versions
Sourcepub fn get_conversion_path(
    &self,
    from: DdexVersion,
    to: DdexVersion,
) -> Option<&ConversionPath>
 
pub fn get_conversion_path( &self, from: DdexVersion, to: DdexVersion, ) -> Option<&ConversionPath>
Get conversion path information
Sourcepub fn get_feature_compatibility(
    &self,
    feature: &str,
) -> Option<&FeatureSupport>
 
pub fn get_feature_compatibility( &self, feature: &str, ) -> Option<&FeatureSupport>
Get feature compatibility information
Sourcepub fn get_recommended_strategy(
    &self,
    from: DdexVersion,
    to: DdexVersion,
) -> Option<&ConversionStrategy>
 
pub fn get_recommended_strategy( &self, from: DdexVersion, to: DdexVersion, ) -> Option<&ConversionStrategy>
Get recommended conversion strategy
Trait Implementations§
Source§impl Clone for VersionManager
 
impl Clone for VersionManager
Source§fn clone(&self) -> VersionManager
 
fn clone(&self) -> VersionManager
Returns a duplicate of the value. Read more
1.0.0 · 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 VersionManager
 
impl Debug for VersionManager
Auto Trait Implementations§
impl Freeze for VersionManager
impl RefUnwindSafe for VersionManager
impl Send for VersionManager
impl Sync for VersionManager
impl Unpin for VersionManager
impl UnwindSafe for VersionManager
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
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