pub struct OpencodeGoUsageWindow {
pub entry_type: &'static str,
pub spent_usd: f64,
pub limit_usd: f64,
pub resets_at: Option<DateTime<Utc>>,
}Fields§
§entry_type: &'static str§spent_usd: f64§limit_usd: f64§resets_at: Option<DateTime<Utc>>Implementations§
Source§impl OpencodeGoUsageWindow
impl OpencodeGoUsageWindow
pub fn is_limited(&self) -> bool
pub fn utilization(&self) -> f64
Trait Implementations§
Source§impl Clone for OpencodeGoUsageWindow
impl Clone for OpencodeGoUsageWindow
Source§fn clone(&self) -> OpencodeGoUsageWindow
fn clone(&self) -> OpencodeGoUsageWindow
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 moreSource§impl Debug for OpencodeGoUsageWindow
impl Debug for OpencodeGoUsageWindow
Source§impl PartialEq for OpencodeGoUsageWindow
impl PartialEq for OpencodeGoUsageWindow
impl StructuralPartialEq for OpencodeGoUsageWindow
Auto Trait Implementations§
impl Freeze for OpencodeGoUsageWindow
impl RefUnwindSafe for OpencodeGoUsageWindow
impl Send for OpencodeGoUsageWindow
impl Sync for OpencodeGoUsageWindow
impl Unpin for OpencodeGoUsageWindow
impl UnsafeUnpin for OpencodeGoUsageWindow
impl UnwindSafe for OpencodeGoUsageWindow
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