use crate::dto::prelude::*;
#[derive(CandidType, Clone, Debug, Deserialize)]
pub struct ScalingRegistryEntry {
pub pid: Principal,
pub entry: WorkerEntry,
}
#[derive(CandidType, Clone, Debug, Deserialize)]
pub struct ScalingRegistryResponse(pub Vec<ScalingRegistryEntry>);
#[derive(CandidType, Clone, Debug, Deserialize, Eq, PartialEq)]
pub struct WorkerEntry {
pub pool: String, pub canister_role: CanisterRole, pub created_at_secs: u64, }