pub struct ProcessedRequest {
pub id: Option<String>,
pub unique_key: Option<String>,
pub request_id: Option<String>,
pub was_already_present: Option<bool>,
pub was_already_handled: Option<bool>,
}Expand description
A request successfully processed by a request-queue batch add or batch delete operation.
The populated fields depend on the operation: a batch add always sets unique_key,
request_id, was_already_present and was_already_handled (the API’s AddedRequest); a
batch delete sets id and/or unique_key, whichever the request was identified by (the
API’s DeletedRequest).
Fields§
§id: Option<String>The request’s ID, when the operation identifies requests by ID (batch delete).
unique_key: Option<String>The request’s unique key.
request_id: Option<String>The request’s ID, as returned by a batch add (mirrors the API’s requestId).
was_already_present: Option<bool>Whether the request was already present in the queue (batch add only).
was_already_handled: Option<bool>Whether the request had already been handled (batch add only).
Trait Implementations§
Source§impl Clone for ProcessedRequest
impl Clone for ProcessedRequest
Source§impl Debug for ProcessedRequest
impl Debug for ProcessedRequest
Source§impl Default for ProcessedRequest
impl Default for ProcessedRequest
Source§impl<'de> Deserialize<'de> for ProcessedRequest
impl<'de> Deserialize<'de> for ProcessedRequest
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 ProcessedRequest
impl RefUnwindSafe for ProcessedRequest
impl Send for ProcessedRequest
impl Sync for ProcessedRequest
impl Unpin for ProcessedRequest
impl UnsafeUnpin for ProcessedRequest
impl UnwindSafe for ProcessedRequest
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