Custom fields repo into AppState
This commit is contained in:
1 parent
be64b1da2d
commit
f61f93717c
6 files changed
+20
-3
No files matched your search
@@ -196,12 +196,23 @@ impl CardState {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct CustomField {
|
||||
pub id: Id,
|
||||
pub name: String,
|
||||
pub identifier: String,
|
||||
}
|
||||
|
||||
impl EntityData for CustomField {
|
||||
fn id(&self) -> Id {
|
||||
self.id
|
||||
}
|
||||
|
||||
fn set_id(&mut self, id: Id) {
|
||||
self.id = id;
|
||||
}
|
||||
}
|
||||
|
||||
pub struct EntityHandle<E> {
|
||||
pub(crate) id: Id,
|
||||
index: u32,
|
||||
|
||||
Reference in new issue
Block a user