pub struct SavedWindow {
pub period: Period,
pub since: u64,
pub cut: bool,
pub jobs: u64,
pub minutes: u64,
pub cost: Usd,
pub runners: Vec<PricedRunner>,
pub free: u64,
pub services: u64,
pub unknown: u64,
pub lost: u64,
pub untimed: u64,
}Expand description
The jobs of one window and what they would have cost.
Fields§
§period: PeriodWhich window.
since: u64Its start, in seconds: the window’s, or when the history starts holding every job if that is later.
cut: boolWhether the history starts after the window’s start, so since is when it does.
jobs: u64The jobs priced.
minutes: u64Their minutes, each job’s rounded up to a whole minute.
cost: UsdWhat they would have cost, before any minutes the account’s plan includes.
runners: Vec<PricedRunner>The same by runner priced at, by SKU.
free: u64Jobs GitHub would have run free: on a standard runner, of a public repository.
services: u64Jobs on a standard runner whose workflow is named as GitHub’s Dependabot or Pages workflow, which GitHub runs free: not priced, as the name does not prove it.
unknown: u64Jobs of repositories whose visibility GitHub has not given: not priced.
lost: u64Lost jobs: not priced, as their end is when runnerd saw their runner gone.
untimed: u64Completed jobs without a start or an end: not priced.
Implementations§
Source§impl SavedWindow
impl SavedWindow
Sourcepub fn not_priced(&self) -> u64
pub fn not_priced(&self) -> u64
The jobs of the window not in its figure, free or not priced.
Sourcepub fn headline(&self) -> String
pub fn headline(&self) -> String
The figure with what it is before, for compact places, which show it whole or not at all: “This month: 1,234
job-minutes here, about $7.40 at GitHub’s 2-core Linux rate before your plan’s free minutes (3 jobs not
priced)”. What it rests on, today’s profiles and repository visibility, is the last of details.
Trait Implementations§
Source§impl Clone for SavedWindow
impl Clone for SavedWindow
Source§impl Debug for SavedWindow
impl Debug for SavedWindow
Source§impl<'de> Deserialize<'de> for SavedWindow
impl<'de> Deserialize<'de> for SavedWindow
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 SavedWindow
Source§impl PartialEq for SavedWindow
impl PartialEq for SavedWindow
Source§impl Serialize for SavedWindow
impl Serialize for SavedWindow
impl StructuralPartialEq for SavedWindow
Auto Trait Implementations§
impl Freeze for SavedWindow
impl RefUnwindSafe for SavedWindow
impl Send for SavedWindow
impl Sync for SavedWindow
impl Unpin for SavedWindow
impl UnsafeUnpin for SavedWindow
impl UnwindSafe for SavedWindow
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.