pub struct SourceItem {
pub ordinal: u64,
pub fields: Vec<(String, Value)>,
}Expand description
A single item yielded by a source.
Fields§
§ordinal: u64Position in the source sequence.
fields: Vec<(String, Value)>Named field values. Empty for range sources (ordinal IS the data).
For dataset sources: [("vector", Value::Json(...)), ("metadata", Value::U64(...))].
Implementations§
Source§impl SourceItem
impl SourceItem
Trait Implementations§
Source§impl Clone for SourceItem
impl Clone for SourceItem
Auto Trait Implementations§
impl !RefUnwindSafe for SourceItem
impl !UnwindSafe for SourceItem
impl Forget for SourceItem
impl Freeze for SourceItem
impl Move for SourceItem
impl Send for SourceItemwhere
RawVecInner: Send,
Arc<str>: Send,
Arc<[u8]>: Send,
Arc<Value>: Send,
BoxRaw<dyn ReflectedValue>: Send,
Arc<dyn Any + Sync + Send>: Send,
Arc<OrdinalSet>: Send,
Arc<PredicateForms>: Send,
Arc<RecordForms>: Send,
SliceArc<f32>: Send,
SliceArc<i32>: Send,
SliceArc<f64>: Send,
SliceArc<i64>: Send,
SliceArc<f16>: Send,
SliceArc<i16>: Send,
SliceArc<i8>: Send,
impl Sync for SourceItemwhere
RawVecInner: Sync,
Arc<str>: Sync,
Arc<[u8]>: Sync,
Arc<Value>: Sync,
BoxRaw<dyn ReflectedValue>: Sync,
Arc<dyn Any + Sync + Send>: Sync,
Arc<OrdinalSet>: Sync,
Arc<PredicateForms>: Sync,
Arc<RecordForms>: Sync,
SliceArc<f32>: Sync,
SliceArc<i32>: Sync,
SliceArc<f64>: Sync,
SliceArc<i64>: Sync,
SliceArc<f16>: Sync,
SliceArc<i16>: Sync,
SliceArc<i8>: Sync,
impl Unpin for SourceItemwhere
*const u8 is !null: Unpin,
Arc<str>: Unpin,
Arc<[u8]>: Unpin,
Arc<Value>: Unpin,
Box<dyn ReflectedValue>: Unpin,
Arc<dyn Any + Sync + Send>: Unpin,
Arc<OrdinalSet>: Unpin,
Arc<PredicateForms>: Unpin,
Arc<RecordForms>: Unpin,
*const f32: Unpin,
*const i32: Unpin,
*const f64: Unpin,
*const i64: Unpin,
*const f16: Unpin,
*const i16: Unpin,
*const i8: Unpin,
impl UnsafeUnpin for SourceItem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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