[][src]Struct sn_data_types::MapUnseqEntryActions

pub struct MapUnseqEntryActions { /* fields omitted */ }

Unsequenced Entry Actions for given entry keys.

Implementations

impl UnseqEntryActions[src]

pub fn new() -> Self[src]

Creates a new unsequenced Entry Actions list.

pub fn actions(&self) -> &BTreeMap<Vec<u8>, UnseqEntryAction>[src]

Gets the actions.

pub fn into_actions(self) -> BTreeMap<Vec<u8>, UnseqEntryAction>[src]

Converts UnseqEntryActions struct to a BTreeMap of the keys with their corresponding action.

pub fn ins(self, key: Vec<u8>, content: Vec<u8>) -> Self[src]

Insert a new key-value pair

pub fn update(self, key: Vec<u8>, content: Vec<u8>) -> Self[src]

Update existing key-value pair

pub fn del(self, key: Vec<u8>) -> Self[src]

Delete existing key

pub fn add_action(&mut self, key: Vec<u8>, action: UnseqEntryAction)[src]

Adds a UnseqEntryAction to the list of actions, replacing it if it is already present

Trait Implementations

impl Clone for UnseqEntryActions[src]

impl Debug for UnseqEntryActions[src]

impl Default for UnseqEntryActions[src]

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

impl Eq for UnseqEntryActions[src]

impl From<BTreeMap<Vec<u8>, UnseqEntryAction>> for UnseqEntryActions[src]

impl From<UnseqEntryActions> for BTreeMap<Vec<u8>, UnseqEntryAction>[src]

impl From<UnseqEntryActions> for EntryActions[src]

impl Hash for UnseqEntryActions[src]

impl Ord for UnseqEntryActions[src]

impl PartialEq<UnseqEntryActions> for UnseqEntryActions[src]

impl PartialOrd<UnseqEntryActions> for UnseqEntryActions[src]

impl Serialize for UnseqEntryActions[src]

impl StructuralEq for UnseqEntryActions[src]

impl StructuralPartialEq for UnseqEntryActions[src]

Auto Trait Implementations

Blanket Implementations

impl<A> Actor for A where
    A: Clone + Ord + Hash
[src]

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<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<T> Member for T where
    T: Clone + Eq + Hash
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,