pub struct BatchResultEntry {
pub client_id: String,
pub index: usize,
pub status: String,
pub chunked: bool,
pub vector_ids: Vec<String>,
pub vectors_created: usize,
pub error: Option<String>,
}Expand description
One entry in BatchResponse::results as emitted by the v3
/insert_texts handler. Carries the client-provided id alongside
the server-assigned vector UUID(s) so callers can round-trip the
mapping when they need idempotency by client id.
Fields§
§client_id: StringOriginal id the caller sent in BatchTextRequest.
index: usizeZero-based index of the entry in the original batch.
status: String"ok" or "error".
chunked: boolWhether the server chunked the input (long text → multiple vectors).
vector_ids: Vec<String>Server-assigned UUID(s) — one element unless chunked is true.
vectors_created: usizeCount of vectors created for this entry (≥1 if chunked).
error: Option<String>Populated only on status == "error".
Trait Implementations§
Source§impl Clone for BatchResultEntry
impl Clone for BatchResultEntry
Source§fn clone(&self) -> BatchResultEntry
fn clone(&self) -> BatchResultEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BatchResultEntry
impl Debug for BatchResultEntry
Source§impl<'de> Deserialize<'de> for BatchResultEntry
impl<'de> Deserialize<'de> for BatchResultEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BatchResultEntry
impl RefUnwindSafe for BatchResultEntry
impl Send for BatchResultEntry
impl Sync for BatchResultEntry
impl Unpin for BatchResultEntry
impl UnsafeUnpin for BatchResultEntry
impl UnwindSafe for BatchResultEntry
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request