1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
mod component;
mod widget;
use std::path::PathBuf;
pub use component::Component;
use wallet::psbt::Psbt;
pub(self) use widget::Widgets;
use crate::model::{PublicNetwork, WalletSettings};
pub struct ViewModel {}
#[derive(Msg)]
pub enum Msg {
Show,
ShowPage(Page),
Close,
Template(i32),
Duplicate(WalletSettings, String),
Import,
Wallet,
Psbt(Option<PublicNetwork>),
Recent,
About,
WalletCreated(PathBuf),
WalletClosed,
CreatePsbt(Psbt, PublicNetwork),
PsbtClosed,
}
#[derive(Clone, Copy, Ord, PartialOrd, Eq, PartialEq, Hash, Debug)]
pub enum Page {
Template = 0,
Open = 1,
Import = 2,
}