pub struct ObjectiveTerm {
pub component_id: String,
pub bucket: ObjectiveBucket,
pub kind: ObjectiveTermKind,
pub subject_kind: ObjectiveSubjectKind,
pub subject_id: String,
pub dollars: f64,
pub quantity: Option<f64>,
pub quantity_unit: Option<ObjectiveQuantityUnit>,
pub unit_rate: Option<f64>,
}Expand description
Exact objective contribution for one reported component.
Fields§
§component_id: StringStable component label within the term’s subject, such as energy,
startup, reserve:spin, or curtailment_segment_0.
bucket: ObjectiveBucketHigh-level accounting bucket.
kind: ObjectiveTermKindDetailed classifier.
subject_kind: ObjectiveSubjectKindSubject scope.
subject_id: StringStable subject id such as a resource id, reserve requirement id, or
system.
dollars: f64Exact objective contribution in dollars for the solved interval or aggregate horizon view.
quantity: Option<f64>Optional physical quantity associated with the term.
quantity_unit: Option<ObjectiveQuantityUnit>Unit for quantity.
unit_rate: Option<f64>Optional unit rate when the term has a meaningful single rate.
Trait Implementations§
Source§impl Clone for ObjectiveTerm
impl Clone for ObjectiveTerm
Source§fn clone(&self) -> ObjectiveTerm
fn clone(&self) -> ObjectiveTerm
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 ObjectiveTerm
impl Debug for ObjectiveTerm
Source§impl Default for ObjectiveTerm
impl Default for ObjectiveTerm
Source§fn default() -> ObjectiveTerm
fn default() -> ObjectiveTerm
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ObjectiveTerm
impl<'de> Deserialize<'de> for ObjectiveTerm
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 ObjectiveTerm
impl RefUnwindSafe for ObjectiveTerm
impl Send for ObjectiveTerm
impl Sync for ObjectiveTerm
impl Unpin for ObjectiveTerm
impl UnsafeUnpin for ObjectiveTerm
impl UnwindSafe for ObjectiveTerm
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