Struct bonsaidb_core::schema::view::map::CollectionMap
source · 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: PartialEq, K: PartialEq, V: PartialEq> PartialEq for CollectionMap<PrimaryKey, K, V>
impl<PrimaryKey: PartialEq, K: PartialEq, V: PartialEq> 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: Eq, K: Eq, V: Eq> 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§
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