#[non_exhaustive]pub struct ParamPatch {
pub name: String,
pub old_value: f64,
pub new_value: f64,
pub delta: f64,
}Available on crate feature
std only.Expand description
Single named policy-parameter update.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringName used to identify this parameter or action.
old_value: f64Parameter value before the proposed update.
new_value: f64Parameter value after the proposed update.
delta: f64Difference between new_value and old_value.
Trait Implementations§
Source§impl Clone for ParamPatch
impl Clone for ParamPatch
Source§impl Debug for ParamPatch
impl Debug for ParamPatch
Source§impl<'de> Deserialize<'de> for ParamPatch
impl<'de> Deserialize<'de> for ParamPatch
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 Forget for ParamPatch
impl Freeze for ParamPatch
impl Move for ParamPatch
impl RefUnwindSafe for ParamPatch
impl Send for ParamPatchwhere
RawVecInner: Send,
impl Sync for ParamPatchwhere
RawVecInner: Sync,
impl Unpin for ParamPatch
impl UnsafeUnpin for ParamPatch
impl UnwindSafe for ParamPatchwhere
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