#[non_exhaustive]pub struct RulePatchPayload {
pub patch_id: String,
pub shadow_only: bool,
pub target_rule: String,
pub delta_weight: f64,
pub param_updates: Vec<ParamPatch>,
}Available on crate feature
std only.Expand description
Serialized payload describing a proposed rule 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.patch_id: StringIdentifier assigned to this proposed rule patch.
shadow_only: boolWhether to evaluate the patch in shadow mode without applying it.
target_rule: StringName of the rule targeted by the patch.
delta_weight: f64Proposed change to the target rule’s weight.
param_updates: Vec<ParamPatch>Parameter changes bundled with this rule patch.
Trait Implementations§
Source§impl Clone for RulePatchPayload
impl Clone for RulePatchPayload
Source§impl Debug for RulePatchPayload
impl Debug for RulePatchPayload
Source§impl<'de> Deserialize<'de> for RulePatchPayload
impl<'de> Deserialize<'de> for RulePatchPayload
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 RulePatchPayload
impl Freeze for RulePatchPayload
impl Move for RulePatchPayload
impl RefUnwindSafe for RulePatchPayload
impl Send for RulePatchPayloadwhere
RawVecInner: Send,
impl Sync for RulePatchPayloadwhere
RawVecInner: Sync,
impl Unpin for RulePatchPayload
impl UnsafeUnpin for RulePatchPayloadwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ParamPatch>: UnsafeUnpin,
impl UnwindSafe for RulePatchPayloadwhere
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