pub enum Basis {
Counted,
Reported,
Modelled,
NotRun,
}Expand description
Where one call’s attributed spend came from.
It is on the record rather than folded into the number so a report can say how much of a session’s total is GitHub’s own figure and how much is this repository’s model.
Variants§
Counted
The budget is metered in requests, so the call is its own measure.
Reported
GitHub reported this call’s own cost, because the request asked it to.
Modelled
This repository’s stated cost model: one point, GitHub’s documented minimum for any call, which is a lower bound rather than a measurement.
NotRun
A rate limiter refused the request, so it never ran and is attributed nothing.
Implementations§
Trait Implementations§
impl Copy for Basis
impl Eq for Basis
Source§impl Ord for Basis
impl Ord for Basis
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Basis
impl PartialOrd for Basis
impl StructuralPartialEq for Basis
Auto Trait Implementations§
impl Freeze for Basis
impl RefUnwindSafe for Basis
impl Send for Basis
impl Sync for Basis
impl Unpin for Basis
impl UnsafeUnpin for Basis
impl UnwindSafe for Basis
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