pub struct RuleChange {
pub rule_id: Option<String>,
pub old_action: Option<Box<Action>>,
pub new_action: Option<Box<Action>>,
}Expand description
RuleChange : A modification to an existing rule’s action between versions.
Fields§
§rule_id: Option<String>Alphanumeric string identifying the rule. Stable across versions of the routing config.
old_action: Option<Box<Action>>§new_action: Option<Box<Action>>Implementations§
Source§impl RuleChange
impl RuleChange
Sourcepub fn new() -> RuleChange
pub fn new() -> RuleChange
A modification to an existing rule’s action between versions.
Trait Implementations§
Source§impl Clone for RuleChange
impl Clone for RuleChange
Source§fn clone(&self) -> RuleChange
fn clone(&self) -> RuleChange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RuleChange
impl Debug for RuleChange
Source§impl Default for RuleChange
impl Default for RuleChange
Source§fn default() -> RuleChange
fn default() -> RuleChange
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuleChange
impl<'de> Deserialize<'de> for RuleChange
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 RuleChange
impl PartialEq for RuleChange
Source§impl Serialize for RuleChange
impl Serialize for RuleChange
impl StructuralPartialEq for RuleChange
Auto Trait Implementations§
impl Freeze for RuleChange
impl RefUnwindSafe for RuleChange
impl Send for RuleChange
impl Sync for RuleChange
impl Unpin for RuleChange
impl UnsafeUnpin for RuleChange
impl UnwindSafe for RuleChange
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