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§
source§impl<PrimaryKey, K, V> Debug for CollectionMap<PrimaryKey, K, V>
impl<PrimaryKey, K, V> Debug for CollectionMap<PrimaryKey, K, V>
source§impl<PrimaryKey, K, V> PartialEq for CollectionMap<PrimaryKey, K, V>
impl<PrimaryKey, K, V> PartialEq for CollectionMap<PrimaryKey, K, V>
source§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>
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>
impl<PrimaryKey, K, V> Send for CollectionMap<PrimaryKey, K, V>
impl<PrimaryKey, K, V> Sync for CollectionMap<PrimaryKey, K, V>
impl<PrimaryKey, K, V> Unpin for CollectionMap<PrimaryKey, K, V>
impl<PrimaryKey, K, V> UnwindSafe for CollectionMap<PrimaryKey, K, V>
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.