pub struct Records {
pub records: Vec<Record>,
pub limits: RecordLimits,
pub shells: Vec<u64>,
}Expand description
GET /v1/records: every record, oldest first, and the limits they are kept within.
Fields§
§records: Vec<Record>Oldest first.
limits: RecordLimitsThe limits.
shells: Vec<u64>The jobs whose record a shell is open in.
Implementations§
Source§impl Records
impl Records
Sourcepub fn summary(&self) -> String
pub fn summary(&self) -> String
How many there are and how much they take of their limits, and when near max_total, Records::pressure:
3 of 20 records, 1.2G of 10G, each kept 7 days; near max_total, so new ones remove the oldest.
Sourcepub fn usage(&self) -> String
pub fn usage(&self) -> String
How many there are and how much they take of their limits: 3 of 20 records, 1.2G of 10G, each kept 7 days.
Sourcepub fn pressure(&self) -> Option<&'static str>
pub fn pressure(&self) -> Option<&'static str>
What being near max_total means, when they are: near max_total, so new ones remove the oldest.
Sourcepub fn summary_tone(&self) -> Tone
pub fn summary_tone(&self) -> Tone
What the summary means: near max_total is worth a look.
Sourcepub fn empty_reason() -> &'static str
pub fn empty_reason() -> &'static str
Why there are none: none kept: a profile with record_failures = true keeps each failed job's runner as a record, to open a shell where it failed.
Sourcepub fn shell_open(&self, job: u64) -> bool
pub fn shell_open(&self, job: u64) -> bool
Whether a shell is open in job’s record.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Records
impl<'de> Deserialize<'de> for Records
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>,
impl Eq for Records
impl StructuralPartialEq for Records
Auto Trait Implementations§
impl Freeze for Records
impl RefUnwindSafe for Records
impl Send for Records
impl Sync for Records
impl Unpin for Records
impl UnsafeUnpin for Records
impl UnwindSafe for Records
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.