optirs-tpu 0.3.1

OptiRS TPU coordination and pod management
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Source Selection Module

use crate::pod_coordination::types::*;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct SelectionCriterion {
    pub priority: u32,
    pub weight: f64,
}

pub type SourceSelectionCriteria = Vec<SelectionCriterion>;

#[derive(Debug, Clone, Default)]
pub struct SourceSelector {
    pub criteria: SourceSelectionCriteria,
}