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: KThe key used to index the View.
value: VAn 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
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> StructuralPartialEq for CollectionMap<PrimaryKey, K, V>
Auto Trait Implementations§
impl<PrimaryKey, K, V> Freeze for CollectionMap<PrimaryKey, K, V>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more