#[repr(C)]pub struct KernelModel {
pub model_id: u32,
pub provider_id: u16,
pub quality_bps: u16,
pub risk_ceiling_bps: u16,
pub enabled: u8,
pub p95_latency_ms: u32,
pub capabilities: u64,
pub region_mask: u64,
pub input_cost_microunits_per_million_tokens: u64,
pub output_cost_microunits_per_million_tokens: u64,
}Expand description
A candidate model in the decision catalog.
Fields§
§model_id: u32Unique identifier for this model.
provider_id: u16Provider index (0–63). IDs > MAX_PROVIDER_ID are rejected.
quality_bps: u16Quality score in basis points (0–10,000).
risk_ceiling_bps: u16Maximum risk this model can handle, in basis points.
enabled: u81 = enabled, 0 = disabled (skipped during evaluation).
p95_latency_ms: u3295th-percentile latency in milliseconds.
capabilities: u64Bitmask of capabilities this model supports.
region_mask: u64Bitmask of regions where this model is available.
input_cost_microunits_per_million_tokens: u64Input cost per million tokens, in microunits (1 cent = 1,000,000).
output_cost_microunits_per_million_tokens: u64Output cost per million tokens, in microunits.
Trait Implementations§
Source§impl Clone for KernelModel
impl Clone for KernelModel
Source§fn clone(&self) -> KernelModel
fn clone(&self) -> KernelModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KernelModel
Source§impl Debug for KernelModel
impl Debug for KernelModel
Source§impl<'de> Deserialize<'de> for KernelModel
impl<'de> Deserialize<'de> for KernelModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KernelModel
Source§impl PartialEq for KernelModel
impl PartialEq for KernelModel
Source§fn eq(&self, other: &KernelModel) -> bool
fn eq(&self, other: &KernelModel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KernelModel
impl Serialize for KernelModel
impl StructuralPartialEq for KernelModel
Auto Trait Implementations§
impl Freeze for KernelModel
impl RefUnwindSafe for KernelModel
impl Send for KernelModel
impl Sync for KernelModel
impl Unpin for KernelModel
impl UnsafeUnpin for KernelModel
impl UnwindSafe for KernelModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.