pub struct CollectionMap<PrimaryKey, K = (), V = ()> {
pub source: CollectionHeader<PrimaryKey>,
pub key: K,
pub value: V,
}
Expand description
A document’s entry in a View’s mappings.
Fields§
§source: CollectionHeader<PrimaryKey>
The header of the document that emitted this entry.
key: K
The key used to index the View.
value: V
An associated value stored in the view.
Trait Implementations§
§impl<PrimaryKey, K, V> Debug for CollectionMap<PrimaryKey, K, V>where
PrimaryKey: Debug,
K: Debug,
V: Debug,
impl<PrimaryKey, K, V> Debug for CollectionMap<PrimaryKey, K, V>where PrimaryKey: Debug, K: Debug, V: Debug,
§impl<PrimaryKey, K, V> PartialEq<CollectionMap<PrimaryKey, K, V>> for CollectionMap<PrimaryKey, K, V>where
PrimaryKey: PartialEq<PrimaryKey>,
K: PartialEq<K>,
V: PartialEq<V>,
impl<PrimaryKey, K, V> PartialEq<CollectionMap<PrimaryKey, K, V>> for CollectionMap<PrimaryKey, K, V>where PrimaryKey: PartialEq<PrimaryKey>, K: PartialEq<K>, V: PartialEq<V>,
§fn eq(&self, other: &CollectionMap<PrimaryKey, K, V>) -> bool
fn eq(&self, other: &CollectionMap<PrimaryKey, K, V>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<PrimaryKey, K, V> Eq for CollectionMap<PrimaryKey, K, V>where PrimaryKey: Eq, K: Eq, V: Eq,
impl<PrimaryKey, K, V> StructuralEq for CollectionMap<PrimaryKey, K, V>
impl<PrimaryKey, K, V> StructuralPartialEq for CollectionMap<PrimaryKey, K, V>
Auto Trait Implementations§
impl<PrimaryKey, K, V> RefUnwindSafe for CollectionMap<PrimaryKey, K, V>where K: RefUnwindSafe, PrimaryKey: RefUnwindSafe, V: RefUnwindSafe,
impl<PrimaryKey, K, V> Send for CollectionMap<PrimaryKey, K, V>where K: Send, PrimaryKey: Send, V: Send,
impl<PrimaryKey, K, V> Sync for CollectionMap<PrimaryKey, K, V>where K: Sync, PrimaryKey: Sync, V: Sync,
impl<PrimaryKey, K, V> Unpin for CollectionMap<PrimaryKey, K, V>where K: Unpin, PrimaryKey: Unpin, V: Unpin,
impl<PrimaryKey, K, V> UnwindSafe for CollectionMap<PrimaryKey, K, V>where K: UnwindSafe, PrimaryKey: UnwindSafe, V: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.