appstruct-codegen 0.2.0

Deterministic Rust, SQL, OpenAPI, TypeScript, and React generation for AppStruct
Documentation
1
2
3
4
5
6
pub(super) fn worker_values(poll_interval_ms: u64, lease_seconds: u64) -> (i64, u64) {
    (
        i64::try_from(lease_seconds).unwrap_or(30),
        poll_interval_ms.saturating_mul(32).min(5_000),
    )
}