summaryrefslogtreecommitdiff
path: root/schist_desktop_gui/src/state.rs
diff options
context:
space:
mode:
authorJoe Carstairs <jcarstairs@scottlogic.com>2025-07-28 14:33:46 +0100
committerJoe Carstairs <jcarstairs@scottlogic.com>2025-07-28 15:58:10 +0100
commit6531d6783cb5943564c452e3368b3b68ef0b0b0b (patch)
treee70e2758470df504d74cb5a9373b6269d56ee1b4 /schist_desktop_gui/src/state.rs
parent365c4b1974fb1d3361e97f64584a4f31bae98160 (diff)
task-010: adds Hello, world!
Diffstat (limited to 'schist_desktop_gui/src/state.rs')
-rw-r--r--schist_desktop_gui/src/state.rs18
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!"),
+ }
+ }
+}