pub struct FlowPlan {
pub request_id: String,
pub total_flow: i64,
pub total_cost: i64,
pub edge_flows: Vec<i64>,
pub fulfillment: f64,
pub feasible: bool,
}Expand description
The min-cost flow routing.
Fields§
§request_id: String§total_flow: i64§total_cost: i64§edge_flows: Vec<i64>Flow on each edge, in the same order as the request’s edges vec.
fulfillment: f64total_flow / demand — 1.0 when demand is fully satisfied.
feasible: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for FlowPlan
impl<'de> Deserialize<'de> for FlowPlan
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 FlowPlan
impl FactPayload for FlowPlan
impl StructuralPartialEq for FlowPlan
Auto Trait Implementations§
impl Freeze for FlowPlan
impl RefUnwindSafe for FlowPlan
impl Send for FlowPlan
impl Sync for FlowPlan
impl Unpin for FlowPlan
impl UnsafeUnpin for FlowPlan
impl UnwindSafe for FlowPlan
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