[][src]Struct ledb::Modify

pub struct Modify(pub HashMap<Identifier, Vec<Action>>);

Modification operator

Implementations

impl Modify[src]

pub fn new() -> Self[src]

Create empty modifier

pub fn one<I: Into<Identifier>>(field: I, action: Action) -> Self[src]

Create single modifier

pub fn add<I: Into<Identifier>>(&mut self, field: I, action: Action)[src]

Append modification to modifier

pub fn with<I: Into<Identifier>>(self, field: I, action: Action) -> Self[src]

Add modification to modifier

pub fn apply(&self, val: Value) -> Value[src]

Apply modifier to generic data

Trait Implementations

impl Clone for Modify[src]

impl Debug for Modify[src]

impl Default for Modify[src]

impl<'de> Deserialize<'de> for Modify[src]

impl PartialEq<Modify> for Modify[src]

impl Serialize for Modify[src]

impl StructuralPartialEq for Modify[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone
[src]

impl<T> SafeBorrow<T> for T where
    T: ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.