Struct bonsaidb_core::schema::view::map::MappedDocuments
source · pub struct MappedDocuments<D, V: View> {
pub mappings: ViewMappings<V>,
pub documents: BTreeMap<<V::Collection as Collection>::PrimaryKey, D>,
}
Expand description
A collection of mappings and the associated documents.
Fields§
§mappings: ViewMappings<V>
The collection of mappings.
documents: BTreeMap<<V::Collection as Collection>::PrimaryKey, D>
All associated documents by ID.
Documents can appear in a mapping query multiple times. As a result, they are stored separately to avoid duplication.
Implementations§
source§impl<D, V: View> MappedDocuments<D, V>
impl<D, V: View> MappedDocuments<D, V>
Trait Implementations§
source§impl<D, V: View> Debug for MappedDocuments<D, V>where
V::Key: Debug,
V::Value: Debug,
D: Debug,
<V::Collection as Collection>::PrimaryKey: Debug,
impl<D, V: View> Debug for MappedDocuments<D, V>where V::Key: Debug, V::Value: Debug, D: Debug, <V::Collection as Collection>::PrimaryKey: Debug,
source§impl<'a, D, V: View> IntoIterator for &'a MappedDocuments<D, V>
impl<'a, D, V: View> IntoIterator for &'a MappedDocuments<D, V>
Auto Trait Implementations§
impl<D, V> RefUnwindSafe for MappedDocuments<D, V>where D: RefUnwindSafe, <V as View>::Key: RefUnwindSafe, <<V as View>::Collection as Collection>::PrimaryKey: RefUnwindSafe, <V as View>::Value: RefUnwindSafe,
impl<D, V> Send for MappedDocuments<D, V>where D: Send,
impl<D, V> Sync for MappedDocuments<D, V>where D: Sync,
impl<D, V> Unpin for MappedDocuments<D, V>where <V as View>::Key: Unpin, <<V as View>::Collection as Collection>::PrimaryKey: Unpin, <V as View>::Value: Unpin,
impl<D, V> UnwindSafe for MappedDocuments<D, V>where D: RefUnwindSafe, <V as View>::Key: UnwindSafe, <<V as View>::Collection as Collection>::PrimaryKey: UnwindSafe + RefUnwindSafe, <V as View>::Value: UnwindSafe,
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