pub struct RetrieveFileOut {Show 14 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>>,
pub deleted: bool,
}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>>§deleted: boolImplementations§
Source§impl RetrieveFileOut
impl RetrieveFileOut
pub fn new( id: Uuid, object: String, bytes: i32, created_at: i32, filename: String, purpose: FilePurpose, sample_type: SampleType, source: Source, deleted: bool, ) -> RetrieveFileOut
Trait Implementations§
Source§impl Clone for RetrieveFileOut
impl Clone for RetrieveFileOut
Source§fn clone(&self) -> RetrieveFileOut
fn clone(&self) -> RetrieveFileOut
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 RetrieveFileOut
impl Debug for RetrieveFileOut
Source§impl Default for RetrieveFileOut
impl Default for RetrieveFileOut
Source§fn default() -> RetrieveFileOut
fn default() -> RetrieveFileOut
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RetrieveFileOut
impl<'de> Deserialize<'de> for RetrieveFileOut
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 RetrieveFileOut
impl PartialEq for RetrieveFileOut
Source§impl Serialize for RetrieveFileOut
impl Serialize for RetrieveFileOut
impl StructuralPartialEq for RetrieveFileOut
Auto Trait Implementations§
impl Freeze for RetrieveFileOut
impl RefUnwindSafe for RetrieveFileOut
impl Send for RetrieveFileOut
impl Sync for RetrieveFileOut
impl Unpin for RetrieveFileOut
impl UnsafeUnpin for RetrieveFileOut
impl UnwindSafe for RetrieveFileOut
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