pub struct SessionLimitsExhaustedRequestedData {
pub max_ai_credits: f64,
pub request_id: RequestId,
pub used_ai_credits: f64,
}Expand description
Session event “session_limits_exhausted.requested”. Session limit exhaustion notification requiring user action.
Fields§
§max_ai_credits: f64Configured max AI Credits for the current accounting window.
request_id: RequestIdUnique identifier for this request; used to respond via session.ui.handlePendingSessionLimitsExhausted().
used_ai_credits: f64AI Credits already consumed in the current accounting window.
Trait Implementations§
Source§impl Clone for SessionLimitsExhaustedRequestedData
impl Clone for SessionLimitsExhaustedRequestedData
Source§fn clone(&self) -> SessionLimitsExhaustedRequestedData
fn clone(&self) -> SessionLimitsExhaustedRequestedData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for SessionLimitsExhaustedRequestedData
impl Default for SessionLimitsExhaustedRequestedData
Source§fn default() -> SessionLimitsExhaustedRequestedData
fn default() -> SessionLimitsExhaustedRequestedData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionLimitsExhaustedRequestedData
impl<'de> Deserialize<'de> for SessionLimitsExhaustedRequestedData
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
Auto Trait Implementations§
impl Freeze for SessionLimitsExhaustedRequestedData
impl RefUnwindSafe for SessionLimitsExhaustedRequestedData
impl Send for SessionLimitsExhaustedRequestedData
impl Sync for SessionLimitsExhaustedRequestedData
impl Unpin for SessionLimitsExhaustedRequestedData
impl UnsafeUnpin for SessionLimitsExhaustedRequestedData
impl UnwindSafe for SessionLimitsExhaustedRequestedData
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