amethystate 0.9.1

Type-safe reactive persistence for Rust GUI apps
Documentation
use amethystate_macros::amethystate;
#[amethystate]
pub struct ConnectionPool {
    #[amestate(default = 10)]
    pub max_connections: u32,

    #[amestate(default = 30)]
    pub timeout_secs: u32,
}

#[amethystate(prefix = "sys.database")]
pub struct DatabaseState {
    #[amestate(nested)]
    pub pool: ConnectionPool,
}

#[amethystate(prefix = "ui.inspector")]
pub struct InspectorState {
    #[amestate(lookup_node = "pool", parent = DatabaseState)]
    pub db_pool_view: ConnectionPool,
}

fn main() {}