[−][src]Struct ledb_types::KeyField
Indexed field definition
Fields
path: String
key: KeyType
kind: IndexKind
Methods
impl KeyField
[src]
pub fn new<S: ToString>(path: S) -> Self
[src]
Create key field from field name
pub fn with_type(self, key: KeyType) -> Self
[src]
Add key type
pub fn with_kind(self, kind: IndexKind) -> Self
[src]
Add index kind
pub fn set_parent<S: AsRef<str>>(&mut self, parent: S)
[src]
Set parent path
This makes key field to be child for parent path
pub fn with_parent<S: AsRef<str>>(self, parent: S) -> Self
[src]
Add parent path
This makes key field to be child for parent path
Trait Implementations
impl Into<(String, KeyType, IndexKind)> for KeyField
[src]
impl Into<(String, IndexKind, KeyType)> for KeyField
[src]
impl Eq for KeyField
[src]
impl Clone for KeyField
[src]
impl PartialEq<KeyField> for KeyField
[src]
impl<S: ToString> From<(S,)> for KeyField
[src]
impl<'a, S: ToString> From<&'a (S,)> for KeyField
[src]
impl<S: ToString> From<(S, KeyType)> for KeyField
[src]
impl<'a, S: ToString> From<&'a (S, KeyType)> for KeyField
[src]
impl<S: ToString> From<(S, IndexKind)> for KeyField
[src]
impl<'a, S: ToString> From<&'a (S, IndexKind)> for KeyField
[src]
impl<S: ToString> From<(S, KeyType, IndexKind)> for KeyField
[src]
impl<'a, S: ToString> From<&'a (S, KeyType, IndexKind)> for KeyField
[src]
impl<S: ToString> From<(S, IndexKind, KeyType)> for KeyField
[src]
impl<'a, S: ToString> From<&'a (S, IndexKind, KeyType)> for KeyField
[src]
impl Debug for KeyField
[src]
impl Serialize for KeyField
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for KeyField
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for KeyField
impl Unpin for KeyField
impl Sync for KeyField
impl UnwindSafe for KeyField
impl RefUnwindSafe for KeyField
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,