pub struct InferenceRoutingOptionDescriptor {
pub id: String,
pub label: String,
pub router_id: InferenceRouterId,
pub baseline: ModelSelection,
pub profile: Option<String>,
pub objective: Option<String>,
pub reasoning: Option<String>,
pub available: bool,
pub unavailable_reason: Option<String>,
pub metadata: Value,
}Fields§
§id: String§label: String§router_id: InferenceRouterId§baseline: ModelSelection§profile: Option<String>§objective: Option<String>§reasoning: Option<String>§available: bool§metadata: ValueImplementations§
Source§impl InferenceRoutingOptionDescriptor
impl InferenceRoutingOptionDescriptor
pub fn selectable( id: impl Into<String>, label: impl Into<String>, router_id: impl Into<String>, baseline: ModelSelection, ) -> Self
pub fn selection_mode(&self) -> ModelSelectionMode
Trait Implementations§
Source§impl Clone for InferenceRoutingOptionDescriptor
impl Clone for InferenceRoutingOptionDescriptor
Source§fn clone(&self) -> InferenceRoutingOptionDescriptor
fn clone(&self) -> InferenceRoutingOptionDescriptor
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<'de> Deserialize<'de> for InferenceRoutingOptionDescriptor
impl<'de> Deserialize<'de> for InferenceRoutingOptionDescriptor
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
Source§impl PartialEq for InferenceRoutingOptionDescriptor
impl PartialEq for InferenceRoutingOptionDescriptor
Source§fn eq(&self, other: &InferenceRoutingOptionDescriptor) -> bool
fn eq(&self, other: &InferenceRoutingOptionDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InferenceRoutingOptionDescriptor
Auto Trait Implementations§
impl Freeze for InferenceRoutingOptionDescriptor
impl RefUnwindSafe for InferenceRoutingOptionDescriptor
impl Send for InferenceRoutingOptionDescriptor
impl Sync for InferenceRoutingOptionDescriptor
impl Unpin for InferenceRoutingOptionDescriptor
impl UnsafeUnpin for InferenceRoutingOptionDescriptor
impl UnwindSafe for InferenceRoutingOptionDescriptor
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