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<'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
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