pub struct RateLimitsParamArgs { /* private fields */ }Expand description
Builder for RateLimitsParam.
Implementations§
Source§impl RateLimitsParamArgs
impl RateLimitsParamArgs
Sourcepub fn max_requests_per_1_minute<VALUE: Into<i32>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn max_requests_per_1_minute<VALUE: Into<i32>>( &mut self, value: VALUE, ) -> &mut Self
Maximum number of requests allowed per minute for the session. Defaults to 10.
Sourcepub fn build(&self) -> Result<RateLimitsParam, OpenAIError>
pub fn build(&self) -> Result<RateLimitsParam, OpenAIError>
Trait Implementations§
Source§impl Clone for RateLimitsParamArgs
impl Clone for RateLimitsParamArgs
Source§fn clone(&self) -> RateLimitsParamArgs
fn clone(&self) -> RateLimitsParamArgs
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 Debug for RateLimitsParamArgs
impl Debug for RateLimitsParamArgs
Auto Trait Implementations§
impl Freeze for RateLimitsParamArgs
impl RefUnwindSafe for RateLimitsParamArgs
impl Send for RateLimitsParamArgs
impl Sync for RateLimitsParamArgs
impl Unpin for RateLimitsParamArgs
impl UnwindSafe for RateLimitsParamArgs
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