pub struct OrganizationSpendLimit<'c, C: Config> { /* private fields */ }Available on crate feature
administration only.Implementations§
Source§impl<'c, C: Config> OrganizationSpendLimit<'c, C>
impl<'c, C: Config> OrganizationSpendLimit<'c, C>
pub fn new(client: &'c Client<C>) -> Self
Sourcepub async fn retrieve(
&self,
) -> Result<OrganizationSpendLimitResource, OpenAIError>
pub async fn retrieve( &self, ) -> Result<OrganizationSpendLimitResource, OpenAIError>
Get the organization’s hard spend limit.
Sourcepub async fn update(
&self,
request: UpdateOrganizationSpendLimitBody,
) -> Result<OrganizationSpendLimitResource, OpenAIError>
pub async fn update( &self, request: UpdateOrganizationSpendLimitBody, ) -> Result<OrganizationSpendLimitResource, OpenAIError>
Create or replace the organization’s hard spend limit.
Sourcepub async fn delete(
&self,
) -> Result<OrganizationSpendLimitDeletedResource, OpenAIError>
pub async fn delete( &self, ) -> Result<OrganizationSpendLimitDeletedResource, OpenAIError>
Delete the organization’s hard spend limit.
Trait Implementations§
Source§impl<'c, C: Config> RequestOptionsBuilder for OrganizationSpendLimit<'c, C>
Available on crate feature _api only.
impl<'c, C: Config> RequestOptionsBuilder for OrganizationSpendLimit<'c, C>
Available on crate feature
_api only.Source§fn options_mut(&mut self) -> &mut RequestOptions
fn options_mut(&mut self) -> &mut RequestOptions
Get mutable reference to RequestOptions (for building)
Source§fn options(&self) -> &RequestOptions
fn options(&self) -> &RequestOptions
Get reference to RequestOptions
Source§fn header<K, V>(self, key: K, value: V) -> Result<Self, OpenAIError>
fn header<K, V>(self, key: K, value: V) -> Result<Self, OpenAIError>
Add a single header to RequestOptions
Auto Trait Implementations§
impl<'c, C> !RefUnwindSafe for OrganizationSpendLimit<'c, C>
impl<'c, C> !UnwindSafe for OrganizationSpendLimit<'c, C>
impl<'c, C> Freeze for OrganizationSpendLimit<'c, C>
impl<'c, C> Send for OrganizationSpendLimit<'c, C>
impl<'c, C> Sync for OrganizationSpendLimit<'c, C>
impl<'c, C> Unpin for OrganizationSpendLimit<'c, C>
impl<'c, C> UnsafeUnpin for OrganizationSpendLimit<'c, C>where
&'c Client<C>: UnsafeUnpin,
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