pub struct DocumentFromDb<'t, Mapper>where
Mapper: FieldIdMapper,{ /* private fields */ }Implementations§
Source§impl<'t, Mapper: FieldIdMapper> DocumentFromDb<'t, Mapper>
impl<'t, Mapper: FieldIdMapper> DocumentFromDb<'t, Mapper>
Trait Implementations§
Source§impl<Mapper: FieldIdMapper> Clone for DocumentFromDb<'_, Mapper>
impl<Mapper: FieldIdMapper> Clone for DocumentFromDb<'_, Mapper>
Source§impl<'t, Mapper> Debug for DocumentFromDb<'t, Mapper>where
Mapper: FieldIdMapper + Debug,
impl<'t, Mapper> Debug for DocumentFromDb<'t, Mapper>where
Mapper: FieldIdMapper + Debug,
Source§impl<'t, Mapper: FieldIdMapper> Document<'t> for DocumentFromDb<'t, Mapper>
impl<'t, Mapper: FieldIdMapper> Document<'t> for DocumentFromDb<'t, Mapper>
Source§fn iter_top_level_fields(
&self,
) -> impl Iterator<Item = Result<(&'t str, &'t RawValue)>>
fn iter_top_level_fields( &self, ) -> impl Iterator<Item = Result<(&'t str, &'t 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<&'t RawValue>>
fn vectors_field(&self) -> Result<Option<&'t RawValue>>
Returns the unparsed value of the
_vectors field from the document data. Read moreSource§fn geo_field(&self) -> Result<Option<&'t RawValue>>
fn geo_field(&self) -> Result<Option<&'t 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 _geoimpl<Mapper: FieldIdMapper> Copy for DocumentFromDb<'_, Mapper>
Auto Trait Implementations§
impl<'t, Mapper> Freeze for DocumentFromDb<'t, Mapper>
impl<'t, Mapper> RefUnwindSafe for DocumentFromDb<'t, Mapper>where
Mapper: RefUnwindSafe,
impl<'t, Mapper> Send for DocumentFromDb<'t, Mapper>where
Mapper: Sync,
impl<'t, Mapper> Sync for DocumentFromDb<'t, Mapper>where
Mapper: Sync,
impl<'t, Mapper> Unpin for DocumentFromDb<'t, Mapper>
impl<'t, Mapper> UnwindSafe for DocumentFromDb<'t, Mapper>where
Mapper: RefUnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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