| 1 | use bitcode::{Decode, Encode}; |
| 2 | |
| 3 | use crate::model::User; |
| 4 | |
| 5 | #[derive(Debug, Clone, Encode, Decode)] |
| 6 | pub struct Hello { |
| 7 | pub token: Option<String>, |
| 8 | pub device: String, |
| 9 | pub build: Option<crate::update::Sha>, |
| 10 | pub install: crate::update::Install, |
| 11 | } |
| 12 | |
| 13 | #[derive(Debug, Clone, Encode, Decode)] |
| 14 | pub struct Welcome { |
| 15 | pub user: Option<User>, |
| 16 | } |