pub enum Action {
Set(Value),
Delete,
Add(Value),
Sub(Value),
Mul(Value),
Div(Value),
Toggle,
Replace(WrappedRegex, String),
Splice(i32, i32, Vec<Value>),
Merge(Value),
}
Expand description
Modifier action
Variants§
Set(Value)
Set new value to field
Delete
Delete field
Add(Value)
Add some value to field
This also works with string and bytes fields
Sub(Value)
Substract some value from field
Mul(Value)
Multiply field to value
Div(Value)
Divide field to value
Toggle
Toggle boolean field
Replace(WrappedRegex, String)
Replace string field using regular expression
Splice(i32, i32, Vec<Value>)
Splice array field
Merge(Value)
Merge object field
Trait Implementations§
source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
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
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations§
source§impl<'a, T> DefaultFeatures<'a> for Twhere
T: 'a + Send + Sync + Clone,
impl<'a, T> DefaultFeatures<'a> for Twhere
T: 'a + Send + Sync + Clone,
source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait. Read moresource§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait. Read more