pub struct BatchResult {
pub status: u16,
pub id: Option<String>,
pub duplicate: Option<bool>,
pub matched: Option<u64>,
pub invisible_until: Option<String>,
pub error_code: Option<String>,
pub error_message: Option<String>,
pub raw: String,
}Expand description
The result of one item of a batch, in the order of the request: the status the single call would have answered
and what it would have returned. An item that failed is not an Err: error_code says why.
Fields§
§status: u16201 published, 200 a FIFO duplicate, a distributor or a new invisibility, 204 acked, or the error’s.
id: Option<String>§duplicate: Option<bool>FIFO queue only.
matched: Option<u64>Distributor only: how many queues matched.
invisible_until: Option<String>change_visibility_batch only: the new deadline.
error_code: Option<String>§error_message: Option<String>§raw: StringImplementations§
Trait Implementations§
Source§impl Clone for BatchResult
impl Clone for BatchResult
Source§impl Debug for BatchResult
impl Debug for BatchResult
impl Eq for BatchResult
Source§impl PartialEq for BatchResult
impl PartialEq for BatchResult
impl StructuralPartialEq for BatchResult
Auto Trait Implementations§
impl Freeze for BatchResult
impl RefUnwindSafe for BatchResult
impl Send for BatchResult
impl Sync for BatchResult
impl Unpin for BatchResult
impl UnsafeUnpin for BatchResult
impl UnwindSafe for BatchResult
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