Can now add database to store.
This commit is contained in:
@ -33,7 +33,7 @@ pub enum FromCache {
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
struct Data<D> {
|
||||
pub struct Data<D> {
|
||||
id: Option<String>,
|
||||
data: Option<D>,
|
||||
}
|
||||
@ -48,6 +48,13 @@ impl<D> Data<D> {
|
||||
data: None,
|
||||
}
|
||||
}
|
||||
|
||||
fn from_data(data: D) -> Self {
|
||||
Self {
|
||||
id: None,
|
||||
data: Some(data),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
|
Reference in New Issue
Block a user