Struct infinitree::fields::strategy::LocalField
source · pub struct LocalField<Field> {
pub field: Field,
}
Expand description
Store the entire field in the index
Fields§
§field: Field
Trait Implementations§
source§impl<T> Collection for LocalField<LinkedList<T>>where
T: Value + Clone,
impl<T> Collection for LocalField<LinkedList<T>>where
T: Value + Clone,
§type Depth = Incremental
type Depth = Incremental
Use this strategy to load the collection. Read more
§type Serialized = T
type Serialized = T
The serialized record format. This type will typically
implement
serde::Serialize
§type Item = T
type Item = T
This is equivalent to
Iterator::Item
, and should contain a
full record that can be inserted into the in-memory store.source§fn key(from: &Self::Serialized) -> &Self::Key
fn key(from: &Self::Serialized) -> &Self::Key
Get the key based on the deserialized data. You want this to
be a reference that’s easy to derive from the serialized data.
source§impl<T> Collection for LocalField<List<T>>where
T: Value + Clone,
impl<T> Collection for LocalField<List<T>>where
T: Value + Clone,
§type Serialized = T
type Serialized = T
The serialized record format. This type will typically
implement
serde::Serialize
§type Item = T
type Item = T
This is equivalent to
Iterator::Item
, and should contain a
full record that can be inserted into the in-memory store.source§fn key(from: &Self::Serialized) -> &Self::Key
fn key(from: &Self::Serialized) -> &Self::Key
Get the key based on the deserialized data. You want this to
be a reference that’s easy to derive from the serialized data.
source§impl<K, V> Collection for LocalField<Map<K, V>>where
K: Key,
V: Value,
impl<K, V> Collection for LocalField<Map<K, V>>where
K: Key,
V: Value,
§type Serialized = (K, V)
type Serialized = (K, V)
The serialized record format. This type will typically
implement
serde::Serialize
§type Item = (K, V)
type Item = (K, V)
This is equivalent to
Iterator::Item
, and should contain a
full record that can be inserted into the in-memory store.source§fn key(from: &Self::Serialized) -> &Self::Key
fn key(from: &Self::Serialized) -> &Self::Key
Get the key based on the deserialized data. You want this to
be a reference that’s easy to derive from the serialized data.
source§impl<K, V> Collection for LocalField<VersionedMap<K, V>>where
K: Key,
V: Value,
impl<K, V> Collection for LocalField<VersionedMap<K, V>>where
K: Key,
V: Value,
§type Depth = Incremental
type Depth = Incremental
Use this strategy to load the collection. Read more
§type Serialized = (K, Option<Arc<V>>)
type Serialized = (K, Option<Arc<V>>)
The serialized record format. This type will typically
implement
serde::Serialize
§type Item = (K, Option<Arc<V>>)
type Item = (K, Option<Arc<V>>)
This is equivalent to
Iterator::Item
, and should contain a
full record that can be inserted into the in-memory store.source§fn key(from: &Self::Serialized) -> &Self::Key
fn key(from: &Self::Serialized) -> &Self::Key
Get the key based on the deserialized data. You want this to
be a reference that’s easy to derive from the serialized data.
source§impl<T> Load for LocalField<Serialized<T>>where
T: DeserializeOwned,
impl<T> Load for LocalField<Serialized<T>>where
T: DeserializeOwned,
source§impl<T> Store for LocalField<LinkedList<T>>where
T: Value,
impl<T> Store for LocalField<LinkedList<T>>where
T: Value,
source§impl<T> Store for LocalField<Serialized<T>>where
T: Serialize + Sync,
impl<T> Store for LocalField<Serialized<T>>where
T: Serialize + Sync,
source§impl<K, V> Store for LocalField<VersionedMap<K, V>>where
K: Key + Clone,
V: Value,
impl<K, V> Store for LocalField<VersionedMap<K, V>>where
K: Key + Clone,
V: Value,
Auto Trait Implementations§
impl<Field> RefUnwindSafe for LocalField<Field>where
Field: RefUnwindSafe,
impl<Field> Send for LocalField<Field>where
Field: Send,
impl<Field> Sync for LocalField<Field>where
Field: Sync,
impl<Field> Unpin for LocalField<Field>where
Field: Unpin,
impl<Field> UnwindSafe for LocalField<Field>where
Field: UnwindSafe,
Blanket Implementations§
source§impl<T> Query for Twhere
T: Collection,
impl<T> Query for Twhere
T: Collection,
§type Key = <T as Collection>::Key
type Key = <T as Collection>::Key
The key that the predicate will use to decide whether to pull
more data into memory.