[][src]Enum ledb::Action

pub enum Action {
    Set(Value),
    Delete,
    Add(Value),
    Sub(Value),
    Mul(Value),
    Div(Value),
    Toggle,
    Replace(WrappedRegexString),
    Splice(i32i32Vec<Value>),
    Merge(Value),
}

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(WrappedRegexString)

Replace string field using regular expression

Splice(i32i32Vec<Value>)

Splice array field

Merge(Value)

Merge object field

Trait Implementations

impl Clone for Action[src]

impl Debug for Action[src]

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

impl PartialEq<Action> for Action[src]

impl Serialize for Action[src]

impl StructuralPartialEq for Action[src]

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

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.