pub struct LockedRequestQueueHead {
pub limit: i64,
pub had_multiple_clients: bool,
pub lock_secs: i64,
pub queue_has_locked_requests: Option<bool>,
pub client_key: Option<String>,
pub items: Vec<RequestQueueRequest>,
pub extra: Extra,
}Expand description
The head of a request queue with a server-side lock applied (POST .../head/lock).
Same shape as RequestQueueHead plus the lock metadata the API returns alongside it.
Fields§
§limit: i64Maximum number of requests returned.
had_multiple_clients: boolWhether more than one client has accessed the queue.
lock_secs: i64Number of seconds the returned requests were locked for.
queue_has_locked_requests: Option<bool>Whether the queue has any requests locked, by this or another client.
client_key: Option<String>The client key the lock was acquired with.
items: Vec<RequestQueueRequest>The locked requests from the head of the queue.
extra: ExtraAny other fields returned by the API.
Trait Implementations§
Source§impl Clone for LockedRequestQueueHead
impl Clone for LockedRequestQueueHead
Source§impl Debug for LockedRequestQueueHead
impl Debug for LockedRequestQueueHead
Source§impl<'de> Deserialize<'de> for LockedRequestQueueHead
impl<'de> Deserialize<'de> for LockedRequestQueueHead
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 LockedRequestQueueHead
impl RefUnwindSafe for LockedRequestQueueHead
impl Send for LockedRequestQueueHead
impl Sync for LockedRequestQueueHead
impl Unpin for LockedRequestQueueHead
impl UnsafeUnpin for LockedRequestQueueHead
impl UnwindSafe for LockedRequestQueueHead
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