pub struct ProviderAssignment {
pub request_id: String,
pub assignments: Vec<CapabilityAssignment>,
pub unmatched: Vec<Capability>,
pub coverage_ratio: f64,
}Expand description
Structured result of provider selection.
Fields§
§request_id: StringThe request this assignment answers.
assignments: Vec<CapabilityAssignment>Matched capability-to-backend assignments.
unmatched: Vec<Capability>Capabilities that no registered backend could satisfy.
coverage_ratio: f64assignments.len() / required_capabilities.len() — 1.0 is full coverage.
Trait Implementations§
Source§impl Clone for ProviderAssignment
impl Clone for ProviderAssignment
Source§fn clone(&self) -> ProviderAssignment
fn clone(&self) -> ProviderAssignment
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 ProviderAssignment
impl Debug for ProviderAssignment
Source§impl<'de> Deserialize<'de> for ProviderAssignment
impl<'de> Deserialize<'de> for ProviderAssignment
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 ProviderAssignment
impl RefUnwindSafe for ProviderAssignment
impl Send for ProviderAssignment
impl Sync for ProviderAssignment
impl Unpin for ProviderAssignment
impl UnsafeUnpin for ProviderAssignment
impl UnwindSafe for ProviderAssignment
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