[−][src]Struct ledb::KeyField
Indexed field definition
Fields
path: String
key: KeyType
kind: IndexKind
Implementations
impl KeyField
[src]
pub fn new<S>(path: S) -> KeyField where
S: ToString,
[src]
S: ToString,
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]
S: AsRef<str>,
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]
S: AsRef<str>,
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]
fn deserialize<__D>(
__deserializer: __D
) -> Result<KeyField, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<KeyField, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Eq for KeyField
[src]
impl<'a, S> From<&'a (S, IndexKind, KeyType)> for KeyField where
S: ToString,
[src]
S: ToString,
impl<'a, S> From<&'a (S, IndexKind)> for KeyField where
S: ToString,
[src]
S: ToString,
impl<'a, S> From<&'a (S, KeyType, IndexKind)> for KeyField where
S: ToString,
[src]
S: ToString,
impl<'a, S> From<&'a (S, KeyType)> for KeyField where
S: ToString,
[src]
S: ToString,
impl<'a, S> From<&'a (S,)> for KeyField where
S: ToString,
[src]
S: ToString,
impl<S> From<(S, IndexKind, KeyType)> for KeyField where
S: ToString,
[src]
S: ToString,
impl<S> From<(S, IndexKind)> for KeyField where
S: ToString,
[src]
S: ToString,
impl<S> From<(S, KeyType, IndexKind)> for KeyField where
S: ToString,
[src]
S: ToString,
impl<S> From<(S, KeyType)> for KeyField where
S: ToString,
[src]
S: ToString,
impl<S> From<(S,)> for KeyField where
S: ToString,
[src]
S: ToString,
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]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralEq for KeyField
[src]
impl StructuralPartialEq for KeyField
[src]
Auto Trait Implementations
impl RefUnwindSafe for KeyField
impl Send for KeyField
impl Sync for KeyField
impl Unpin for KeyField
impl UnwindSafe for KeyField
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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<'a, T> DefaultFeatures<'a> for T where
T: 'a + Clone + Send + Sync,
[src]
T: 'a + Clone + Send + Sync,
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a>
[src]
fn self_address_mut(&mut self) -> *mut ()
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a>
[src]
fn self_address_mut(&mut self) -> *mut ()
[src]
impl<T> SafeBorrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
[src]
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, 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>,