pub struct FileObject {
pub id: String,
pub object_type: String,
pub filename: String,
pub size_bytes: u64,
pub content_type: String,
pub purpose: FilePurpose,
pub created_at: DateTime<Utc>,
pub expires_at: Option<DateTime<Utc>>,
pub status: FileStatus,
pub metadata: HashMap<String, String>,
}
Expand description
File object from the Anthropic Files API
Fields§
§id: String
Unique identifier for the file
object_type: String
Object type (always “file”)
filename: String
Original filename
size_bytes: u64
File size in bytes
content_type: String
MIME type of the file
purpose: FilePurpose
Purpose of the file (e.g., “batch_input”, “batch_output”)
created_at: DateTime<Utc>
When the file was created
expires_at: Option<DateTime<Utc>>
When the file expires (if applicable)
status: FileStatus
Current status of the file
metadata: HashMap<String, String>
Additional metadata
Trait Implementations§
Source§impl Clone for FileObject
impl Clone for FileObject
Source§fn clone(&self) -> FileObject
fn clone(&self) -> FileObject
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FileObject
impl Debug for FileObject
Source§impl<'de> Deserialize<'de> for FileObject
impl<'de> Deserialize<'de> for FileObject
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 FileObject
impl RefUnwindSafe for FileObject
impl Send for FileObject
impl Sync for FileObject
impl Unpin for FileObject
impl UnwindSafe for FileObject
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