pub struct MergedDocument<'a, 'doc, 't, Mapper: FieldIdMapper> { /* private fields */ }Implementations§
Source§impl<'a, 'doc, 't, Mapper: FieldIdMapper> MergedDocument<'a, 'doc, 't, Mapper>
impl<'a, 'doc, 't, Mapper: FieldIdMapper> MergedDocument<'a, 'doc, 't, Mapper>
pub fn with_db( docid: DocumentId, rtxn: &'t RoTxn<'_>, index: &'t Index, db_fields_ids_map: &'t Mapper, new_doc: DocumentFromVersions<'a, 'doc>, ) -> Result<Self>
pub fn without_db(new_doc: DocumentFromVersions<'a, 'doc>) -> Self
Trait Implementations§
Source§impl<'a, 'doc, 't, Mapper: Debug + FieldIdMapper> Debug for MergedDocument<'a, 'doc, 't, Mapper>
impl<'a, 'doc, 't, Mapper: Debug + FieldIdMapper> Debug for MergedDocument<'a, 'doc, 't, Mapper>
Source§impl<'d, 'doc: 'd, 't: 'd, Mapper: FieldIdMapper> Document<'d> for MergedDocument<'d, 'doc, 't, Mapper>
impl<'d, 'doc: 'd, 't: 'd, Mapper: FieldIdMapper> Document<'d> for MergedDocument<'d, 'doc, 't, Mapper>
Source§fn iter_top_level_fields(
&self,
) -> impl Iterator<Item = Result<(&'d str, &'d RawValue)>>
fn iter_top_level_fields( &self, ) -> impl Iterator<Item = Result<(&'d str, &'d RawValue)>>
Iterate over all top-level fields of the document, returning their name and raw JSON value. Read more
Source§fn vectors_field(&self) -> Result<Option<&'d RawValue>>
fn vectors_field(&self) -> Result<Option<&'d RawValue>>
Returns the unparsed value of the
_vectors field from the document data. Read moreSource§fn geo_field(&self) -> Result<Option<&'d RawValue>>
fn geo_field(&self) -> Result<Option<&'d RawValue>>
Returns the unparsed value of the
_geo field from the document data. Read moreSource§fn top_level_fields_count(&self) -> usize
fn top_level_fields_count(&self) -> usize
Number of top level fields, excluding
_vectors and _geoAuto Trait Implementations§
impl<'a, 'doc, 't, Mapper> Freeze for MergedDocument<'a, 'doc, 't, Mapper>
impl<'a, 'doc, 't, Mapper> !RefUnwindSafe for MergedDocument<'a, 'doc, 't, Mapper>
impl<'a, 'doc, 't, Mapper> !Send for MergedDocument<'a, 'doc, 't, Mapper>
impl<'a, 'doc, 't, Mapper> !Sync for MergedDocument<'a, 'doc, 't, Mapper>
impl<'a, 'doc, 't, Mapper> Unpin for MergedDocument<'a, 'doc, 't, Mapper>
impl<'a, 'doc, 't, Mapper> !UnwindSafe for MergedDocument<'a, 'doc, 't, Mapper>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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