pub struct File {
pub id: String,
pub name: String,
pub content_type: String,
pub size: i64,
pub etag: String,
pub checksums: HashMap<String, String>,
pub metadata: HashMap<String, Value>,
pub created_at: String,
pub expires_at: Option<String>,
pub urls: HashMap<String, String>,
}
Expand description
Represents a file uploaded to Replicate.
Fields§
§id: String
The unique ID of the file.
name: String
The name of the file.
content_type: String
The content type of the file.
size: i64
The size of the file in bytes.
etag: String
The ETag of the file.
checksums: HashMap<String, String>
File checksums.
metadata: HashMap<String, Value>
File metadata.
created_at: String
When the file was created.
expires_at: Option<String>
When the file expires (optional).
urls: HashMap<String, String>
File URLs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for File
impl<'de> Deserialize<'de> for File
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 File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
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