pub struct ProcessFlow {
pub process_id: String,
pub commodity: Rc<Commodity>,
pub flow: f64,
pub flow_type: FlowType,
pub flow_cost: f64,
pub is_pac: bool,
}
Fields§
§process_id: String
A unique identifier for the process
commodity: Rc<Commodity>
Identifies the commodity for the specified flow
flow: f64
Commodity flow quantity relative to other commodity flows.
Positive value indicates flow out and negative value indicates flow in.
flow_type: FlowType
Identifies if a flow is fixed or flexible.
flow_cost: f64
Cost per unit flow.
For example, cost per unit of natural gas produced. The user can apply it to any specified
flow, in contrast to ProcessParameter::variable_operating_cost
, which applies only to
PAC flows.
is_pac: bool
Whether this flow represents a Primary Activity Commodity
Trait Implementations§
Source§impl Clone for ProcessFlow
impl Clone for ProcessFlow
Source§fn clone(&self) -> ProcessFlow
fn clone(&self) -> ProcessFlow
Returns a copy of the value. Read more
1.0.0 · 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 ProcessFlow
impl Debug for ProcessFlow
Source§impl<'de> Deserialize<'de> for ProcessFlow
impl<'de> Deserialize<'de> for ProcessFlow
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 HasID for ProcessFlow
impl HasID for ProcessFlow
Source§impl PartialEq for ProcessFlow
impl PartialEq for ProcessFlow
impl StructuralPartialEq for ProcessFlow
Auto Trait Implementations§
impl Freeze for ProcessFlow
impl RefUnwindSafe for ProcessFlow
impl !Send for ProcessFlow
impl !Sync for ProcessFlow
impl Unpin for ProcessFlow
impl UnwindSafe for ProcessFlow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more