diff options
Diffstat (limited to 'schist_desktop_gui/src/state.rs')
| -rw-r--r-- | schist_desktop_gui/src/state.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/schist_desktop_gui/src/state.rs b/schist_desktop_gui/src/state.rs new file mode 100644 index 0000000..0183104 --- /dev/null +++ b/schist_desktop_gui/src/state.rs @@ -0,0 +1,18 @@ +use crate::message::Message; + +pub struct State { + pub greeting: String, +} + +impl State { + pub fn update(&mut self, _message: Message) { + } +} + +impl Default for State { + fn default() -> Self { + Self { + greeting: String::from("Hello, world!"), + } + } +} |
