Unversioned

Trait Unversioned 

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

Source

type Versioned: Versioned

The concrete Versioned type.

Required Methods§

Source

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.

Implementors§

Source§

impl<'buf> Unversioned for ocpi_tariffs::cdr::Unversioned<'buf>

Source§

impl<'buf> Unversioned for ocpi_tariffs::tariff::Unversioned<'buf>