pub struct CapabilityResolution {
pub model_id: String,
pub resolved_provider: String,
pub execution_plan: ExecutionPlan,
pub alternatives: Vec<ExecutionPlan>,
}Expand description
Result of capability resolution for a model + client requirements.
Fields§
§model_id: StringModel being resolved.
resolved_provider: StringSelected provider peer ID.
execution_plan: ExecutionPlanThe execution plan chosen.
alternatives: Vec<ExecutionPlan>Alternative plans (sorted by estimated latency).
Trait Implementations§
Source§impl Clone for CapabilityResolution
impl Clone for CapabilityResolution
Source§fn clone(&self) -> CapabilityResolution
fn clone(&self) -> CapabilityResolution
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 CapabilityResolution
impl Debug for CapabilityResolution
Source§impl Default for CapabilityResolution
impl Default for CapabilityResolution
Source§fn default() -> CapabilityResolution
fn default() -> CapabilityResolution
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CapabilityResolution
impl<'de> Deserialize<'de> for CapabilityResolution
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
Auto Trait Implementations§
impl Freeze for CapabilityResolution
impl RefUnwindSafe for CapabilityResolution
impl Send for CapabilityResolution
impl Sync for CapabilityResolution
impl Unpin for CapabilityResolution
impl UnsafeUnpin for CapabilityResolution
impl UnwindSafe for CapabilityResolution
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