Spaces:
Sleeping
Sleeping
| use serde::{Serialize, Deserialize}; | |
| pub struct VMState { | |
| pub trust: i64, | |
| pub flow_total: i64, | |
| pub flow_velocity: f64, | |
| pub productivity: i64, | |
| pub credit_balance: i64, | |
| pub credit_cap: i64, | |
| pub default_risk: f64, | |
| pub identity_locked: bool, | |
| pub governance_weight: i64, | |
| pub sim_tick: u64, | |
| } | |
| impl VMState { | |
| pub fn new() -> Self { | |
| Self { | |
| trust: 100, | |
| flow_total: 0, | |
| flow_velocity: 0.0, | |
| productivity: 50, | |
| credit_balance: 0, | |
| credit_cap: 0, | |
| default_risk: 0.0, | |
| identity_locked: false, | |
| governance_weight: 0, | |
| sim_tick: 0, | |
| } | |
| } | |
| } |