pub struct OauthUsageWindow {
pub utilization: Option<f64>,
pub resets_at: Option<Value>,
}Expand description
Per-window utilisation. utilization is a percentage (0-100);
resets_at is whatever the API emits (ISO-8601 string or numeric
epoch). Consumers parse it themselves.
Fields§
§utilization: Option<f64>Percentage of the window consumed (0.0-100.0). None when the
API omits the field for this window.
resets_at: Option<Value>When the window resets. Either an ISO-8601 string or a numeric
epoch - kept as raw serde_json::Value so callers can parse
whichever form they prefer.
Trait Implementations§
Source§impl Clone for OauthUsageWindow
impl Clone for OauthUsageWindow
Source§impl Debug for OauthUsageWindow
impl Debug for OauthUsageWindow
Source§impl Default for OauthUsageWindow
impl Default for OauthUsageWindow
Source§impl<'de> Deserialize<'de> for OauthUsageWindow
impl<'de> Deserialize<'de> for OauthUsageWindow
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
Source§impl PartialEq for OauthUsageWindow
impl PartialEq for OauthUsageWindow
Source§impl Serialize for OauthUsageWindow
impl Serialize for OauthUsageWindow
impl StructuralPartialEq for OauthUsageWindow
Auto Trait Implementations§
impl Freeze for OauthUsageWindow
impl RefUnwindSafe for OauthUsageWindow
impl Send for OauthUsageWindow
impl Sync for OauthUsageWindow
impl Unpin for OauthUsageWindow
impl UnsafeUnpin for OauthUsageWindow
impl UnwindSafe for OauthUsageWindow
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