if let Some(OperationResult::DocumentUpdated { header, .. }) = results.into_iter().next() {
/// the view using [`self.view::<View>().query_with_collection_docs()`](View::query_with_collection_docs) instead.
_phantom: PhantomData<Cl>, /* allows for extension traits to be written for collections of specific types */
pub async fn overwrite<D: Document<Cl> + Send + Sync>(&self, doc: &mut D) -> Result<(), Error> {
pub async fn get<PrimaryKey>(&self, id: PrimaryKey) -> Result<Option<OwnedDocument>, Error>
/// Executes the query and retrieves the results with the associated [`Document`s](crate::document::OwnedDocument).
/// Executes the query and retrieves the results with the associated [`CollectionDocument`s](crate::document::CollectionDocument).
#[view(collection = MyCollection, key = u32, value = f32, name = "scores-by-rank", core = $crate)]