Added repositories into AppState
This commit is contained in:
1 parent
6c20561ede
commit
11d5144db5
9 files changed
+67
-23
No files matched your search
@@ -79,6 +79,17 @@ pub struct DeckSettings {
|
||||
pub count: Option<usize>,
|
||||
pub open_mode: OrderMode,
|
||||
}
|
||||
|
||||
impl EntityData for DeckSettings {
|
||||
fn id(&self) -> Id {
|
||||
self.id
|
||||
}
|
||||
|
||||
fn set_id(&mut self, id: Id) {
|
||||
self.id = id;
|
||||
}
|
||||
}
|
||||
|
||||
impl DeckSettings {
|
||||
pub(crate) fn with_name(name: String) -> DeckSettings {
|
||||
DeckSettings {
|
||||
|
||||
Reference in new issue
Block a user