pub struct Window {
pub kind: String,
pub scope: Option<String>,
pub percent: f64,
pub resets_at: Option<i64>,
pub is_active: bool,
pub severity: Option<String>,
pub length_seconds: Option<i64>,
}Fields§
§kind: String§scope: Option<String>§percent: f64§resets_at: Option<i64>§is_active: bool§severity: Option<String>How Anthropic grades this row, when it grades it. Its word, not a threshold of pitboard’s own, and absent in a reading taken before pitboard read this field.
length_seconds: Option<i64>How long the window runs, in seconds, where that is known.
What makes a limit comparable to itself over time: a reset time alone cannot say how long a window is, because the time left shrinks as the window runs out. Stated outright by OpenAI, implied by the kind for Anthropic, and absent from a reading taken before pitboard kept it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Window
impl<'de> Deserialize<'de> for Window
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Window
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnsafeUnpin for Window
impl UnwindSafe for Window
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