pub struct IngestionResponse {
pub successes: Vec<IngestionSuccess>,
pub errors: Vec<IngestionError>,
}Expand description
Response body for the ingestion endpoint.
Note: This endpoint always returns 207 Multi-Status for batch requests (even
if every individual item succeeds); per-item results are split between successes
(each with its own HTTP status, 201 on success) and errors. Therefore, whether an
error actually occurred can only be determined by checking whether errors is
non-empty — the 207 status code cannot be used for that purpose.
Fields§
§successes: Vec<IngestionSuccess>§errors: Vec<IngestionError>Trait Implementations§
Source§impl Clone for IngestionResponse
impl Clone for IngestionResponse
Source§fn clone(&self) -> IngestionResponse
fn clone(&self) -> IngestionResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IngestionResponse
impl Debug for IngestionResponse
Source§impl<'de> Deserialize<'de> for IngestionResponse
impl<'de> Deserialize<'de> for IngestionResponse
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 IngestionResponse
impl RefUnwindSafe for IngestionResponse
impl Send for IngestionResponse
impl Sync for IngestionResponse
impl Unpin for IngestionResponse
impl UnsafeUnpin for IngestionResponse
impl UnwindSafe for IngestionResponse
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