pub struct UsageImagesResult {
pub api_key_id: Option<String>,
pub images: i32,
pub model: Option<String>,
pub num_model_requests: i32,
pub object: String,
pub project_id: Option<String>,
pub size: Option<String>,
pub source: Option<String>,
pub user_id: Option<String>,
}
Fields§
§api_key_id: Option<String>
When group_by=api_key_id
, this field provides the API key ID of the grouped usage result.
images: i32
The number of images processed.
model: Option<String>
When group_by=model
, this field provides the model name of the grouped usage result.
num_model_requests: i32
The count of requests made to the model.
object: String
§project_id: Option<String>
When group_by=project_id
, this field provides the project ID of the grouped usage result.
size: Option<String>
When group_by=size
, this field provides the image size of the grouped usage result.
source: Option<String>
When group_by=source
, this field provides the source of the grouped usage result, possible values are image.generation
, image.edit
, image.variation
.
user_id: Option<String>
When group_by=user_id
, this field provides the user ID of the grouped usage result.
Trait Implementations§
Source§impl Debug for UsageImagesResult
impl Debug for UsageImagesResult
Source§impl<'de> Deserialize<'de> for UsageImagesResult
impl<'de> Deserialize<'de> for UsageImagesResult
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
Auto Trait Implementations§
impl Freeze for UsageImagesResult
impl RefUnwindSafe for UsageImagesResult
impl Send for UsageImagesResult
impl Sync for UsageImagesResult
impl Unpin for UsageImagesResult
impl UnwindSafe for UsageImagesResult
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