pub struct AssignmentPlan {
pub request_id: String,
pub assignments: Vec<(String, String)>,
pub total_cost: i64,
pub utilization: f64,
}Expand description
The optimal assignment produced by the suggestor.
Fields§
§request_id: String§assignments: Vec<(String, String)>(agent_label, task_label) pairs, one per matched agent.
total_cost: i64§utilization: f64assignments.len() / agents.len() — 1.0 means fully matched.
Trait Implementations§
Source§impl Clone for AssignmentPlan
impl Clone for AssignmentPlan
Source§fn clone(&self) -> AssignmentPlan
fn clone(&self) -> AssignmentPlan
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 AssignmentPlan
impl Debug for AssignmentPlan
Source§impl<'de> Deserialize<'de> for AssignmentPlan
impl<'de> Deserialize<'de> for AssignmentPlan
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 FactPayload for AssignmentPlan
impl FactPayload for AssignmentPlan
Source§impl PartialEq for AssignmentPlan
impl PartialEq for AssignmentPlan
Source§fn eq(&self, other: &AssignmentPlan) -> bool
fn eq(&self, other: &AssignmentPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AssignmentPlan
impl Serialize for AssignmentPlan
impl StructuralPartialEq for AssignmentPlan
Auto Trait Implementations§
impl Freeze for AssignmentPlan
impl RefUnwindSafe for AssignmentPlan
impl Send for AssignmentPlan
impl Sync for AssignmentPlan
impl Unpin for AssignmentPlan
impl UnsafeUnpin for AssignmentPlan
impl UnwindSafe for AssignmentPlan
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