pub struct FactorTable {
pub param: Option<String>,
pub action: Option<String>,
pub values: Option<Vec<SpecValue>>,
pub range: Option<RangeTable>,
pub levels: Option<LevelsKeyword>,
}Expand description
A factor over one parameter or one action’s tick, with exactly one of values, range and levels.
Fields§
§param: Option<String>Id of the parameter the factor varies.
action: Option<String>Name of the action whose tick the factor varies.
values: Option<Vec<SpecValue>>Levels listed one by one.
range: Option<RangeTable>Levels spread over a range.
levels: Option<LevelsKeyword>Levels named by a keyword.
Trait Implementations§
Source§impl Clone for FactorTable
impl Clone for FactorTable
Source§impl Debug for FactorTable
impl Debug for FactorTable
Source§impl<'de> Deserialize<'de> for FactorTable
impl<'de> Deserialize<'de> for FactorTable
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 From<&FactorSpec> for FactorTable
impl From<&FactorSpec> for FactorTable
Source§fn from(factor: &FactorSpec) -> Self
fn from(factor: &FactorSpec) -> Self
Writes each value as SpecValue::from_text converts it.
Source§impl PartialEq for FactorTable
impl PartialEq for FactorTable
Source§impl Serialize for FactorTable
impl Serialize for FactorTable
impl StructuralPartialEq for FactorTable
Auto Trait Implementations§
impl Freeze for FactorTable
impl RefUnwindSafe for FactorTable
impl Send for FactorTable
impl Sync for FactorTable
impl Unpin for FactorTable
impl UnsafeUnpin for FactorTable
impl UnwindSafe for FactorTable
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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