pub struct ParameterSpec {
pub name: String,
pub min: f64,
pub max: f64,
pub initial: f64,
pub max_step: f64,
pub direction: PatchDirection,
}Available on crate feature
std only.Expand description
Bounds and update rules for one named policy parameter.
Fields§
§name: StringUnique name used to address this policy parameter.
min: f64Inclusive lower bound for the parameter value.
max: f64Inclusive upper bound for the parameter value.
initial: f64Initial value assigned to the parameter.
max_step: f64Largest permitted change to the parameter in one update.
direction: PatchDirectionDirection in which the parameter changes in response to prediction error.
Implementations§
Trait Implementations§
Source§impl Clone for ParameterSpec
impl Clone for ParameterSpec
Source§impl Debug for ParameterSpec
impl Debug for ParameterSpec
Source§impl<'de> Deserialize<'de> for ParameterSpec
impl<'de> Deserialize<'de> for ParameterSpec
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 ParameterSpec
impl PartialEq for ParameterSpec
Source§impl Serialize for ParameterSpec
impl Serialize for ParameterSpec
impl StructuralPartialEq for ParameterSpec
Auto Trait Implementations§
impl Forget for ParameterSpec
impl Freeze for ParameterSpec
impl Move for ParameterSpec
impl RefUnwindSafe for ParameterSpec
impl Send for ParameterSpecwhere
RawVecInner: Send,
impl Sync for ParameterSpecwhere
RawVecInner: Sync,
impl Unpin for ParameterSpec
impl UnsafeUnpin for ParameterSpec
impl UnwindSafe for ParameterSpecwhere
RawVecInner: UnwindSafe,
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