pub struct Modify(pub HashMap<Identifier, Vec<Action>>);
Expand description
Modification operator
Tuple Fields§
§0: HashMap<Identifier, Vec<Action>>
Implementations§
source§impl Modify
impl Modify
sourcepub fn one<I: Into<Identifier>>(field: I, action: Action) -> Self
pub fn one<I: Into<Identifier>>(field: I, action: Action) -> Self
Create single modifier
sourcepub fn add<I: Into<Identifier>>(&mut self, field: I, action: Action)
pub fn add<I: Into<Identifier>>(&mut self, field: I, action: Action)
Append modification to modifier
sourcepub fn with<I: Into<Identifier>>(self, field: I, action: Action) -> Self
pub fn with<I: Into<Identifier>>(self, field: I, action: Action) -> Self
Add modification to modifier
Trait Implementations§
source§impl<'de> Deserialize<'de> for Modify
impl<'de> Deserialize<'de> for Modify
source§fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> StdResult<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> StdResult<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Modify
Auto Trait Implementations§
impl RefUnwindSafe for Modify
impl Send for Modify
impl Sync for Modify
impl Unpin for Modify
impl UnwindSafe for Modify
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