[][src]Struct ledb_actix::KeyField

pub struct KeyField {
    pub path: String,
    pub key: KeyType,
    pub kind: IndexKind,
}

Indexed field definition

Fields

path: Stringkey: KeyTypekind: IndexKind

Implementations

impl KeyField[src]

pub fn new<S>(path: S) -> KeyField where
    S: ToString
[src]

Create key field from field name

pub fn with_type(self, key: KeyType) -> KeyField[src]

Add key type

pub fn with_kind(self, kind: IndexKind) -> KeyField[src]

Add index kind

pub fn set_parent<S>(&mut self, parent: S) where
    S: AsRef<str>, 
[src]

Set parent path

This makes key field to be child for parent path

pub fn with_parent<S>(self, parent: S) -> KeyField where
    S: AsRef<str>, 
[src]

Add parent path

This makes key field to be child for parent path

Trait Implementations

impl Clone for KeyField[src]

impl Debug for KeyField[src]

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

impl Eq for KeyField[src]

impl<'a, S> From<&'a (S, IndexKind, KeyType)> for KeyField where
    S: ToString
[src]

impl<'a, S> From<&'a (S, IndexKind)> for KeyField where
    S: ToString
[src]

impl<'a, S> From<&'a (S, KeyType, IndexKind)> for KeyField where
    S: ToString
[src]

impl<'a, S> From<&'a (S, KeyType)> for KeyField where
    S: ToString
[src]

impl<'a, S> From<&'a (S,)> for KeyField where
    S: ToString
[src]

impl<S> From<(S, IndexKind, KeyType)> for KeyField where
    S: ToString
[src]

impl<S> From<(S, IndexKind)> for KeyField where
    S: ToString
[src]

impl<S> From<(S, KeyType, IndexKind)> for KeyField where
    S: ToString
[src]

impl<S> From<(S, KeyType)> for KeyField where
    S: ToString
[src]

impl<S> From<(S,)> for KeyField where
    S: ToString
[src]

impl Into<(String, IndexKind, KeyType)> for KeyField[src]

impl Into<(String, KeyType, IndexKind)> for KeyField[src]

impl PartialEq<KeyField> for KeyField[src]

impl Serialize for KeyField[src]

impl StructuralEq for KeyField[src]

impl StructuralPartialEq for KeyField[src]

Auto Trait Implementations

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[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

impl<T> SafeBorrow<T> for T where
    T: ?Sized

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>,