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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
//! applin-rust
//! ======
//! [](https://crates.io/crates/applin)
//! [](https://github.com/rust-secure-code/safety-dance/)
//! [](https://github.com/leonhard-llc/applin-rust/actions)
//!
//! You can use the Applin™ Server-Driven UI framework to build a mobile app
//! with only server-side code.
//!
//! <https://www.applin.dev/>
//!
//! Use a provided boilerplate app for the frontend.
//! Use this library for the backend.
//!
//! Documentation: <https://www.applin.dev/docs/>
//!
//! Example and live demo: <https://github.com/leonhard-llc/applin-rust-demo>
//!
//! Related crate: [applin_headless](https://crates.io/crates/applin_headless)
//!
//! # Cargo Geiger Safety Report
//! # Changelog
//! - v0.3.0 2025-07-06 - Upgrade to `servlin` v0.8.
//! - v0.2.9 2024-10-26
//! - Add `ModalButton::new` and `ModalButton::with_actions`.
//! - Upgrade to `servlin` v0.6.
//! - v0.2.8 - Make debug formatting more concise by using JSON, for better test failure messages.
//! - v0.2.7
//! - Support `ApplinIos` 0.38.0.
//! - Add `checkbox_button`.
//! - v0.2.6 - Add `RowList::push`, `RowList::new`, `OptWidgetList::push`, and `OptWidgetList::new`.
//! - v0.2.5 - Add `WidgetList::push` and `WidgetList::new`.
//! - v0.2.4
//! - Support `ApplinIos` 0.36.0.
//! - Add `reset_var` and `stop_actions` actions.
//! - v0.2.3 - Add `id` field to `Action` and `ModalButton`, for testing.
//! - v0.2.2 - Add `with_validated` to input widgets. Supports `ApplinIos` 0.33.0.
//! - v0.2.1
//! - Add `id` fields for testing.
//! - Make `Action` fields public.
//! - Make `Real32` and enums `Copy`.
//! - v0.2.0
//! - Support `ApplinIos` 0.32.0.
//! - Remove `on_user_error_poll` action and make it a parameter of the `rpc` action.
//! - v0.1.7
//! - Support `ApplinIos` 0.31.0.
//! - Add `modal` action.
//! - Add `aspect_ratio` to `choose_photo` and `take_photo` actions.
//! - v0.1.6
//! - Support `ApplinIos` 0.28.0.
//! - Add `logout` action.
//! - Add `selector` widget.
//! - v0.1.5
//! - Support `ApplinIos` 0.25.0.
//! - Add `poll_delay_ms` to checkbox and textfield.
//! - Replace checkbox `rpc` field with `actions`.
//! - v0.1.4
//! - Add `From<Option<Into<Widget>>>` for `Widget` for use with `error_text`.
//! - Add `SessionCookie`, `Id`, and `Secret`.
//! - Organize into modules for easier discovery.
//! - v0.1.3 - Add `on_user_error_poll` action.
//! - v0.1.2 - Bugfixes
//! - v0.1.1 - Update documentation.
//! - v0.1.0 - First published version
use cratePage;
use ;
use Debug;
/// # Errors
/// Returns an error when it fails to convert `page` to JSON.
pub