pub struct Meter {
pub status: String,
pub percent: f64,
pub resets_at: Option<String>,
}Expand description
One of the account’s three meters: what share of the window’s limit is gone, and when it resets.
Fields§
§status: StringThe server’s own word for the state (“ok” when inside the limit); kept verbatim so an unrecognised one is still surfaced rather than swallowed.
percent: f64Percent of the window’s limit already used — the console’s number.
resets_at: Option<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Meter
impl<'de> Deserialize<'de> for Meter
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 Meter
Auto Trait Implementations§
impl Freeze for Meter
impl RefUnwindSafe for Meter
impl Send for Meter
impl Sync for Meter
impl Unpin for Meter
impl UnsafeUnpin for Meter
impl UnwindSafe for Meter
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