pub struct RuntimeRef {
pub id: Option<RuntimeId>,
pub resolved: Resolution,
pub tier: RunTier,
pub alternatives: Vec<RuntimeId>,
pub confirmed_at: Option<i64>,
}Expand description
The runtime a model resolves to, plus how that choice was made.
Fields§
§id: Option<RuntimeId>The winning runtime, if resolved.
resolved: ResolutionHow the runtime was chosen.
tier: RunTierHow much support the runtime needs.
alternatives: Vec<RuntimeId>Other runtimes that could also serve this model.
confirmed_at: Option<i64>When the user confirmed the runtime, epoch millis.
Trait Implementations§
Source§impl Clone for RuntimeRef
impl Clone for RuntimeRef
Source§fn clone(&self) -> RuntimeRef
fn clone(&self) -> RuntimeRef
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 moreSource§impl Debug for RuntimeRef
impl Debug for RuntimeRef
Source§impl Default for RuntimeRef
impl Default for RuntimeRef
Source§fn default() -> RuntimeRef
fn default() -> RuntimeRef
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuntimeRef
impl<'de> Deserialize<'de> for RuntimeRef
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 RuntimeRef
Source§impl PartialEq for RuntimeRef
impl PartialEq for RuntimeRef
Source§impl Serialize for RuntimeRef
impl Serialize for RuntimeRef
impl StructuralPartialEq for RuntimeRef
Auto Trait Implementations§
impl Freeze for RuntimeRef
impl RefUnwindSafe for RuntimeRef
impl Send for RuntimeRef
impl Sync for RuntimeRef
impl Unpin for RuntimeRef
impl UnsafeUnpin for RuntimeRef
impl UnwindSafe for RuntimeRef
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