pub struct TokenWarningState {
pub percent_left: f64,
pub is_above_warning_threshold: bool,
pub is_above_error_threshold: bool,
pub is_above_auto_compact_threshold: bool,
pub is_at_blocking_limit: bool,
}Expand description
Calculate token warning state Translated from: calculateTokenWarningState in autoCompact.ts
Fields§
§percent_left: f64§is_above_warning_threshold: bool§is_above_error_threshold: bool§is_above_auto_compact_threshold: bool§is_at_blocking_limit: boolTrait Implementations§
Source§impl Clone for TokenWarningState
impl Clone for TokenWarningState
Source§fn clone(&self) -> TokenWarningState
fn clone(&self) -> TokenWarningState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TokenWarningState
impl RefUnwindSafe for TokenWarningState
impl Send for TokenWarningState
impl Sync for TokenWarningState
impl Unpin for TokenWarningState
impl UnsafeUnpin for TokenWarningState
impl UnwindSafe for TokenWarningState
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