pub struct ProjectRateLimit {
pub object: String,
pub id: String,
pub model: String,
pub max_requests_per_1_minute: i64,
pub max_tokens_per_1_minute: i64,
pub max_images_per_1_minute: Option<i64>,
pub max_audio_megabytes_per_1_minute: Option<i64>,
pub max_requests_per_1_day: Option<i64>,
pub batch_1_day_max_input_tokens: Option<i64>,
}
Expand description
Represents a project rate limit config.
Fields§
§object: String
The object type, which is always project.rate_limit
id: String
The identifier, which can be referenced in API endpoints.
model: String
The model this rate limit applies to.
max_requests_per_1_minute: i64
The maximum requests per minute.
max_tokens_per_1_minute: i64
The maximum tokens per minute.
max_images_per_1_minute: Option<i64>
The maximum images per minute.
max_audio_megabytes_per_1_minute: Option<i64>
The maximum audio megabytes per minute.
max_requests_per_1_day: Option<i64>
The maximum requests per day.
batch_1_day_max_input_tokens: Option<i64>
The maximum batch input tokens per day.
Trait Implementations§
Source§impl Clone for ProjectRateLimit
impl Clone for ProjectRateLimit
Source§fn clone(&self) -> ProjectRateLimit
fn clone(&self) -> ProjectRateLimit
Returns a copy 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 ProjectRateLimit
impl Debug for ProjectRateLimit
Source§impl Default for ProjectRateLimit
impl Default for ProjectRateLimit
Source§fn default() -> ProjectRateLimit
fn default() -> ProjectRateLimit
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProjectRateLimit
impl RefUnwindSafe for ProjectRateLimit
impl Send for ProjectRateLimit
impl Sync for ProjectRateLimit
impl Unpin for ProjectRateLimit
impl UnwindSafe for ProjectRateLimit
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