Struct utapi_rs::models::usage_info::UploadthingUsageInfo
source · pub struct UploadthingUsageInfo {
pub total_bytes: i64,
pub total_readable: String,
pub app_total_bytes: f32,
pub app_total_readable: String,
pub files_uploaded: i32,
pub limit_bytes: f32,
pub limit_readable: String,
}
Expand description
UploadthingUsageInfo
holds statistics about the usage of the UploadThing service.
It contains information about the total bytes transferred, a human-readable representation of the total bytes, application-specific byte counts, the number of files uploaded, and the limits imposed on the usage.
Fields§
§total_bytes: i64
The total number of bytes uploaded.
total_readable: String
A human-readable string representing the total number of bytes uploaded.
app_total_bytes: f32
The total number of bytes uploaded attributed to the application level.
app_total_readable: String
A human-readable string representing the application-specific total bytes uploaded.
files_uploaded: i32
The count of uploaded files.
limit_bytes: f32
The upper limit of bytes that can be uploaded, as a floating-point number.
limit_readable: String
A human-readable string representing the upper limit of bytes that can be uploaded.
Trait Implementations§
source§impl Debug for UploadthingUsageInfo
impl Debug for UploadthingUsageInfo
source§impl<'de> Deserialize<'de> for UploadthingUsageInfo
impl<'de> Deserialize<'de> for UploadthingUsageInfo
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 RefUnwindSafe for UploadthingUsageInfo
impl Send for UploadthingUsageInfo
impl Sync for UploadthingUsageInfo
impl Unpin for UploadthingUsageInfo
impl UnwindSafe for UploadthingUsageInfo
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