diff options
| author | Joe Carstairs <jcarstairs@scottlogic.com> | 2025-07-28 14:33:46 +0100 |
|---|---|---|
| committer | Joe Carstairs <jcarstairs@scottlogic.com> | 2025-07-28 15:58:10 +0100 |
| commit | 6531d6783cb5943564c452e3368b3b68ef0b0b0b (patch) | |
| tree | e70e2758470df504d74cb5a9373b6269d56ee1b4 /schist_desktop_gui/src/state.rs | |
| parent | 365c4b1974fb1d3361e97f64584a4f31bae98160 (diff) | |
task-010: adds Hello, world!
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!"), + } + } +} |
