pub trait Unversioned: Debug {
type Versioned: Versioned;
// Required method
fn force_into_versioned(self, version: Version) -> Self::Versioned;
}Expand description
An object with an uncertain Version.
Required Associated Types§
Required Methods§
Sourcefn force_into_versioned(self, version: Version) -> Self::Versioned
fn force_into_versioned(self, version: Version) -> Self::Versioned
Forced an Unversioned object to be the given Version.
This does not change the structure of the OCPI object. It simply relabels the object as a different OCPI Version.
Use this with care.