pub struct InventorySnapshot {
pub target: ScaleTarget,
pub runners: RunnerInventory,
pub activity: ActivityCount,
pub observed_at: Timestamp,
pub headroom: Option<RateLimitHeadroom>,
}Expand description
One target’s read models, as of one instant.
This is what the TUI holds and what e1 recomputes each refresh. The two
counts are deliberately reachable only through their own types — there is no
total on this struct — so that a screen has to say which aggregate it is
rendering.
Fields§
§target: ScaleTarget§runners: RunnerInventory§activity: ActivityCount§observed_at: Timestamp§headroom: Option<RateLimitHeadroom>What GitHub last said about the hourly quota on the responses that built this snapshot.
Trait Implementations§
Source§impl Clone for InventorySnapshot
impl Clone for InventorySnapshot
Source§fn clone(&self) -> InventorySnapshot
fn clone(&self) -> InventorySnapshot
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 InventorySnapshot
impl Debug for InventorySnapshot
impl Eq for InventorySnapshot
Source§impl PartialEq for InventorySnapshot
impl PartialEq for InventorySnapshot
impl StructuralPartialEq for InventorySnapshot
Auto Trait Implementations§
impl Freeze for InventorySnapshot
impl RefUnwindSafe for InventorySnapshot
impl Send for InventorySnapshot
impl Sync for InventorySnapshot
impl Unpin for InventorySnapshot
impl UnsafeUnpin for InventorySnapshot
impl UnwindSafe for InventorySnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.