pub struct FormationPlan {
pub request_id: String,
pub assignments: Vec<RoleAssignment>,
pub unmatched_roles: Vec<SuggestorRole>,
pub coverage_ratio: f64,
}Expand description
Structured result of formation assembly.
Fields§
§request_id: StringThe request this plan answers.
assignments: Vec<RoleAssignment>Matched role-to-suggestor assignments.
unmatched_roles: Vec<SuggestorRole>Roles that could not be filled from the catalog.
coverage_ratio: f64assignments.len() / required_roles.len() — 1.0 is full coverage.
Trait Implementations§
Source§impl Clone for FormationPlan
impl Clone for FormationPlan
Source§fn clone(&self) -> FormationPlan
fn clone(&self) -> FormationPlan
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 FormationPlan
impl Debug for FormationPlan
Source§impl<'de> Deserialize<'de> for FormationPlan
impl<'de> Deserialize<'de> for FormationPlan
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 FormationPlan
impl FactPayload for FormationPlan
Source§impl PartialEq for FormationPlan
impl PartialEq for FormationPlan
Source§fn eq(&self, other: &FormationPlan) -> bool
fn eq(&self, other: &FormationPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FormationPlan
impl Serialize for FormationPlan
impl StructuralPartialEq for FormationPlan
Auto Trait Implementations§
impl Freeze for FormationPlan
impl RefUnwindSafe for FormationPlan
impl Send for FormationPlan
impl Sync for FormationPlan
impl Unpin for FormationPlan
impl UnsafeUnpin for FormationPlan
impl UnwindSafe for FormationPlan
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