pub struct ModelRuntimeSelection {
pub model: Option<ModelSpec>,
pub backend: Option<ModelRuntimeBackend>,
pub bundle_dir: Option<PathBuf>,
pub fallback_policy: FallbackPolicy,
}Expand description
Advanced generic runtime selection.
Fields§
§model: Option<ModelSpec>Optional concrete model spec.
backend: Option<ModelRuntimeBackend>Optional preferred backend.
bundle_dir: Option<PathBuf>Optional bundle directory.
fallback_policy: FallbackPolicyFallback policy.
Trait Implementations§
Source§impl Clone for ModelRuntimeSelection
impl Clone for ModelRuntimeSelection
Source§fn clone(&self) -> ModelRuntimeSelection
fn clone(&self) -> ModelRuntimeSelection
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 ModelRuntimeSelection
impl Debug for ModelRuntimeSelection
Source§impl Default for ModelRuntimeSelection
impl Default for ModelRuntimeSelection
Source§fn default() -> ModelRuntimeSelection
fn default() -> ModelRuntimeSelection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelRuntimeSelection
impl<'de> Deserialize<'de> for ModelRuntimeSelection
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 ModelRuntimeSelection
Source§impl PartialEq for ModelRuntimeSelection
impl PartialEq for ModelRuntimeSelection
Source§fn eq(&self, other: &ModelRuntimeSelection) -> bool
fn eq(&self, other: &ModelRuntimeSelection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelRuntimeSelection
impl Serialize for ModelRuntimeSelection
impl StructuralPartialEq for ModelRuntimeSelection
Auto Trait Implementations§
impl Freeze for ModelRuntimeSelection
impl RefUnwindSafe for ModelRuntimeSelection
impl Send for ModelRuntimeSelection
impl Sync for ModelRuntimeSelection
impl Unpin for ModelRuntimeSelection
impl UnsafeUnpin for ModelRuntimeSelection
impl UnwindSafe for ModelRuntimeSelection
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