#[non_exhaustive]pub struct BoardWindow {
pub name: String,
pub used_permille: Option<u16>,
pub resets_at: Option<f64>,
pub status: Option<String>,
pub models: Vec<String>,
pub observed_at: f64,
}Expand description
One quota window as the board shows it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe window’s name (five_hour, weekly, …).
used_permille: Option<u16>Thousandths used, when the provider reported a figure.
resets_at: Option<f64>When it resets, as Unix seconds.
status: Option<String>The provider’s status for it, when reported.
models: Vec<String>The models it covers, when the provider names them; empty for every model.
observed_at: f64When it was last read, as Unix seconds.
Trait Implementations§
Source§impl Clone for BoardWindow
impl Clone for BoardWindow
Source§impl Debug for BoardWindow
impl Debug for BoardWindow
Source§impl PartialEq for BoardWindow
impl PartialEq for BoardWindow
Source§impl Serialize for BoardWindow
impl Serialize for BoardWindow
impl StructuralPartialEq for BoardWindow
Auto Trait Implementations§
impl Freeze for BoardWindow
impl RefUnwindSafe for BoardWindow
impl Send for BoardWindow
impl Sync for BoardWindow
impl Unpin for BoardWindow
impl UnsafeUnpin for BoardWindow
impl UnwindSafe for BoardWindow
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.