pub struct UsageAudioSpeechesResult {
pub characters: i64,
pub num_model_requests: i64,
pub project_id: Option<String>,
pub user_id: Option<String>,
pub api_key_id: Option<String>,
pub model: Option<String>,
}
Expand description
The aggregated audio speeches usage details of the specific time bucket.
Fields§
§characters: i64
The number of characters processed.
num_model_requests: i64
The count of requests made to the model.
project_id: Option<String>
When group_by=project_id
, this field provides the project ID of the grouped usage result.
user_id: Option<String>
When group_by=user_id
, this field provides the user ID of the grouped usage result.
api_key_id: Option<String>
When group_by=api_key_id
, this field provides the API key ID of the grouped usage result.
model: Option<String>
When group_by=model
, this field provides the model name of the grouped usage result.
Implementations§
Source§impl UsageAudioSpeechesResult
impl UsageAudioSpeechesResult
Sourcepub fn builder() -> UsageAudioSpeechesResultBuilder<((), (), (), (), (), ())>
pub fn builder() -> UsageAudioSpeechesResultBuilder<((), (), (), (), (), ())>
Create a builder for building UsageAudioSpeechesResult
.
On the builder, call .characters(...)
, .num_model_requests(...)
, .project_id(...)
(optional), .user_id(...)
(optional), .api_key_id(...)
(optional), .model(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of UsageAudioSpeechesResult
.
Trait Implementations§
Source§impl Clone for UsageAudioSpeechesResult
impl Clone for UsageAudioSpeechesResult
Source§fn clone(&self) -> UsageAudioSpeechesResult
fn clone(&self) -> UsageAudioSpeechesResult
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UsageAudioSpeechesResult
impl Debug for UsageAudioSpeechesResult
Source§impl<'de> Deserialize<'de> for UsageAudioSpeechesResult
impl<'de> Deserialize<'de> for UsageAudioSpeechesResult
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>,
Source§impl PartialEq for UsageAudioSpeechesResult
impl PartialEq for UsageAudioSpeechesResult
Source§fn eq(&self, other: &UsageAudioSpeechesResult) -> bool
fn eq(&self, other: &UsageAudioSpeechesResult) -> bool
self
and other
values to be equal, and is used by ==
.