pub struct QueueSnapshotV1 {
pub namespace: DaemonNamespaceV1,
pub jobs: Vec<JobV1>,
pub leases: Vec<QueueLeaseV1>,
pub safe_mode_enabled: bool,
pub records_seen: usize,
}Fields§
§namespace: DaemonNamespaceV1§jobs: Vec<JobV1>§leases: Vec<QueueLeaseV1>§safe_mode_enabled: bool§records_seen: usizeImplementations§
Source§impl QueueSnapshotV1
impl QueueSnapshotV1
pub fn job(&self, job_id: &ArtifactId) -> Option<&JobV1>
pub fn logical_job_count_for(&self, idempotency_key: &str) -> usize
Trait Implementations§
Source§impl Clone for QueueSnapshotV1
impl Clone for QueueSnapshotV1
Source§fn clone(&self) -> QueueSnapshotV1
fn clone(&self) -> QueueSnapshotV1
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 QueueSnapshotV1
impl Debug for QueueSnapshotV1
Source§impl<'de> Deserialize<'de> for QueueSnapshotV1
impl<'de> Deserialize<'de> for QueueSnapshotV1
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 QueueSnapshotV1
impl RefUnwindSafe for QueueSnapshotV1
impl Send for QueueSnapshotV1
impl Sync for QueueSnapshotV1
impl Unpin for QueueSnapshotV1
impl UnsafeUnpin for QueueSnapshotV1
impl UnwindSafe for QueueSnapshotV1
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