pub struct ScaledIndicatorRef {
pub name: String,
pub multiplier: f64,
}Expand description
A scaled indicator reference for use in conditions.
Fields§
§name: String§multiplier: f64Implementations§
Source§impl ScaledIndicatorRef
impl ScaledIndicatorRef
Sourcepub fn is_above_value(self, value: f64) -> ConditionNode
pub fn is_above_value(self, value: f64) -> ConditionNode
Create a condition: this scaled indicator is above a value.
Sourcepub fn is_above_indicator(self, other: IndicatorRef) -> ConditionNode
pub fn is_above_indicator(self, other: IndicatorRef) -> ConditionNode
Create a condition: this scaled indicator is above another indicator.
Sourcepub fn is_below_value(self, value: f64) -> ConditionNode
pub fn is_below_value(self, value: f64) -> ConditionNode
Create a condition: this scaled indicator is below a value.
Sourcepub fn is_below_indicator(self, other: IndicatorRef) -> ConditionNode
pub fn is_below_indicator(self, other: IndicatorRef) -> ConditionNode
Create a condition: this scaled indicator is below another indicator.
Trait Implementations§
Source§impl Clone for ScaledIndicatorRef
impl Clone for ScaledIndicatorRef
Source§fn clone(&self) -> ScaledIndicatorRef
fn clone(&self) -> ScaledIndicatorRef
Returns a duplicate 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 ScaledIndicatorRef
impl Debug for ScaledIndicatorRef
Source§impl<'de> Deserialize<'de> for ScaledIndicatorRef
impl<'de> Deserialize<'de> for ScaledIndicatorRef
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 PartialEq for ScaledIndicatorRef
impl PartialEq for ScaledIndicatorRef
Source§impl Serialize for ScaledIndicatorRef
impl Serialize for ScaledIndicatorRef
impl StructuralPartialEq for ScaledIndicatorRef
Auto Trait Implementations§
impl Freeze for ScaledIndicatorRef
impl RefUnwindSafe for ScaledIndicatorRef
impl Send for ScaledIndicatorRef
impl Sync for ScaledIndicatorRef
impl Unpin for ScaledIndicatorRef
impl UnsafeUnpin for ScaledIndicatorRef
impl UnwindSafe for ScaledIndicatorRef
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