Enum garage_util::migrate::NoPrevious
source · pub enum NoPrevious {}
Expand description
Internal type used by InitialFormat, not meant for general use.
Trait Implementations§
source§impl<'de> Deserialize<'de> for NoPrevious
impl<'de> Deserialize<'de> for NoPrevious
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Migrate for NoPrevious
impl Migrate for NoPrevious
§type Previous = NoPrevious
type Previous = NoPrevious
The previous version of this data type, from which items of this version
can be migrated.
source§fn migrate(_previous: Self::Previous) -> Self
fn migrate(_previous: Self::Previous) -> Self
The migration function that transforms a value decoded in the old format
to an up-to-date value.
source§fn decode(_bytes: &[u8]) -> Option<Self>
fn decode(_bytes: &[u8]) -> Option<Self>
Decode an encoded version of this type, going through a migration if necessary.
source§const VERSION_MARKER: &'static [u8] = b""
const VERSION_MARKER: &'static [u8] = b""
A sequence of bytes to add at the beginning of the serialized
string, to identify that the data is of this version.