pub struct UploadFileOut {Show 13 fields
pub id: Uuid,
pub object: String,
pub bytes: i32,
pub created_at: i32,
pub filename: String,
pub purpose: FilePurpose,
pub sample_type: SampleType,
pub num_lines: Option<Option<i32>>,
pub mimetype: Option<Option<String>>,
pub source: Source,
pub signature: Option<Option<String>>,
pub expires_at: Option<Option<i32>>,
pub visibility: Option<Option<FileVisibility>>,
}Fields§
§id: UuidThe unique identifier of the file.
object: StringThe object type, which is always "file".
bytes: i32The size of the file, in bytes.
created_at: i32The UNIX timestamp (in seconds) of the event.
filename: StringThe name of the uploaded file.
purpose: FilePurposeThe intended purpose of the uploaded file, currently supports fine-tuning (fine-tune), OCR (ocr), Audio/Transcription (audio) and batch inference (batch).
sample_type: SampleType§num_lines: Option<Option<i32>>§mimetype: Option<Option<String>>§source: Source§signature: Option<Option<String>>§expires_at: Option<Option<i32>>§visibility: Option<Option<FileVisibility>>Implementations§
Source§impl UploadFileOut
impl UploadFileOut
pub fn new( id: Uuid, object: String, bytes: i32, created_at: i32, filename: String, purpose: FilePurpose, sample_type: SampleType, source: Source, ) -> UploadFileOut
Trait Implementations§
Source§impl Clone for UploadFileOut
impl Clone for UploadFileOut
Source§fn clone(&self) -> UploadFileOut
fn clone(&self) -> UploadFileOut
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 UploadFileOut
impl Debug for UploadFileOut
Source§impl Default for UploadFileOut
impl Default for UploadFileOut
Source§fn default() -> UploadFileOut
fn default() -> UploadFileOut
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UploadFileOut
impl<'de> Deserialize<'de> for UploadFileOut
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
Source§impl PartialEq for UploadFileOut
impl PartialEq for UploadFileOut
Source§impl Serialize for UploadFileOut
impl Serialize for UploadFileOut
impl StructuralPartialEq for UploadFileOut
Auto Trait Implementations§
impl Freeze for UploadFileOut
impl RefUnwindSafe for UploadFileOut
impl Send for UploadFileOut
impl Sync for UploadFileOut
impl Unpin for UploadFileOut
impl UnsafeUnpin for UploadFileOut
impl UnwindSafe for UploadFileOut
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