Trait CreateDatabaseUpdates

Source
pub trait CreateDatabaseUpdates {
    type DatabaseUpdates;

    // Required method
    fn create_database_updates_with_mapper<M>(&self) -> Self::DatabaseUpdates
       where M: DatabaseKeyMapper;

    // Provided method
    fn create_database_updates(&self) -> Self::DatabaseUpdates { ... }
}

Required Associated Types§

Required Methods§

Source

fn create_database_updates_with_mapper<M>(&self) -> Self::DatabaseUpdates

Uses the given DatabaseKeyMapper to express self using database-level key encoding.

Provided Methods§

Source

fn create_database_updates(&self) -> Self::DatabaseUpdates

Uses the default DatabaseKeyMapper, SpreadPrefixKeyMapper, to express self using database-level key encoding.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§