merge branches and cleanup db
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
use heromodels_core::BaseModelData;
|
||||
use heromodels_derive::model;
|
||||
use rhai::CustomType;
|
||||
use rhai::TypeBuilder;
|
||||
use rhailib_derive::RhaiApi;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use rhai::TypeBuilder;
|
||||
|
||||
/// Represents an event in a contact
|
||||
#[model]
|
||||
@@ -13,7 +13,7 @@ pub struct Object {
|
||||
pub base_data: BaseModelData,
|
||||
#[index]
|
||||
pub title: String,
|
||||
pub description: String
|
||||
pub description: String,
|
||||
}
|
||||
|
||||
impl Object {
|
||||
@@ -28,7 +28,7 @@ impl Object {
|
||||
pub fn id(&self) -> u32 {
|
||||
self.base_data.id
|
||||
}
|
||||
|
||||
|
||||
pub fn title(mut self, title: String) -> Self {
|
||||
self.title = title;
|
||||
self
|
||||
@@ -38,4 +38,4 @@ impl Object {
|
||||
self.description = description;
|
||||
self
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user