pub struct BatchResponse {
pub size: usize,
pub processed: usize,
pub errors: usize,
pub details: Vec<BatchError>,
pub cache: Option<String>,
}Expand description
Summary returned by Umami’s batch ingestion endpoint.
Fields§
§size: usizeNumber of submitted items.
processed: usizeNumber of successfully processed items.
errors: usizeNumber of failed items.
details: Vec<BatchError>Details for each failed item.
cache: Option<String>Cache value returned for the first successfully processed item.
Implementations§
Source§impl BatchResponse
impl BatchResponse
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns true when every item was processed successfully.
Trait Implementations§
Source§impl Clone for BatchResponse
impl Clone for BatchResponse
Source§impl Debug for BatchResponse
impl Debug for BatchResponse
Source§impl<'de> Deserialize<'de> for BatchResponse
impl<'de> Deserialize<'de> for BatchResponse
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 BatchResponse
impl RefUnwindSafe for BatchResponse
impl Send for BatchResponse
impl Sync for BatchResponse
impl Unpin for BatchResponse
impl UnsafeUnpin for BatchResponse
impl UnwindSafe for BatchResponse
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