pub struct RealtimeServerEventRateLimitsUpdated {
pub event_id: String,
pub rate_limits: Vec<RealtimeServerEventRateLimitsUpdatedRateLimits>,
}
Expand description
Emitted at the beginning of a Response to indicate the updated rate limits. When a Response is created some tokens will be “reserved” for the output tokens, the rate limits shown here reflect that reservation, which is then adjusted accordingly once the Response is completed.
Fields§
§event_id: String
The unique ID of the server event.
rate_limits: Vec<RealtimeServerEventRateLimitsUpdatedRateLimits>
List of rate limit information.
Implementations§
Source§impl RealtimeServerEventRateLimitsUpdated
impl RealtimeServerEventRateLimitsUpdated
Sourcepub fn builder() -> RealtimeServerEventRateLimitsUpdatedBuilder<((), ())>
pub fn builder() -> RealtimeServerEventRateLimitsUpdatedBuilder<((), ())>
Create a builder for building RealtimeServerEventRateLimitsUpdated
.
On the builder, call .event_id(...)
, .rate_limits(...)
to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeServerEventRateLimitsUpdated
.
Trait Implementations§
Source§impl Clone for RealtimeServerEventRateLimitsUpdated
impl Clone for RealtimeServerEventRateLimitsUpdated
Source§fn clone(&self) -> RealtimeServerEventRateLimitsUpdated
fn clone(&self) -> RealtimeServerEventRateLimitsUpdated
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<'de> Deserialize<'de> for RealtimeServerEventRateLimitsUpdated
impl<'de> Deserialize<'de> for RealtimeServerEventRateLimitsUpdated
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 RealtimeServerEventRateLimitsUpdated
impl PartialEq for RealtimeServerEventRateLimitsUpdated
Source§fn eq(&self, other: &RealtimeServerEventRateLimitsUpdated) -> bool
fn eq(&self, other: &RealtimeServerEventRateLimitsUpdated) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeServerEventRateLimitsUpdated
Auto Trait Implementations§
impl Freeze for RealtimeServerEventRateLimitsUpdated
impl RefUnwindSafe for RealtimeServerEventRateLimitsUpdated
impl Send for RealtimeServerEventRateLimitsUpdated
impl Sync for RealtimeServerEventRateLimitsUpdated
impl Unpin for RealtimeServerEventRateLimitsUpdated
impl UnwindSafe for RealtimeServerEventRateLimitsUpdated
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