pub trait FidlStorageConvertible {
    type Storable: Persistable + Any;

    const KEY: &'static str;

    // Required methods
    fn default_value() -> Self;
    fn to_storable(self) -> Self::Storable;
    fn from_storable(storable: Self::Storable) -> Self;
}

Required Associated Types§

Required Associated Constants§

source

const KEY: &'static str

Required Methods§

source

fn default_value() -> Self

source

fn to_storable(self) -> Self::Storable

source

fn from_storable(storable: Self::Storable) -> Self

Object Safety§

This trait is not object safe.

Implementors§