pub struct FileRecord {
pub id: String,
pub filename: String,
pub mime_type: String,
pub size_bytes: i64,
pub storage_path: String,
pub delete_token: String,
pub uploaded_at: i64,
pub expires_at: i64,
pub uploader_ip: Option<String>,
pub storage_host: String,
}Expand description
A file record from the files table.
storage_path points to where the file lives on juicehost’s disk. The actual bytes never touch juiceback’s filesystem during a streaming upload.
Fields§
§id: String§filename: String§mime_type: String§size_bytes: i64§storage_path: String§delete_token: String§uploaded_at: i64§expires_at: i64§uploader_ip: Option<String>§storage_host: StringTrait Implementations§
Source§impl Clone for FileRecord
impl Clone for FileRecord
Source§fn clone(&self) -> FileRecord
fn clone(&self) -> FileRecord
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 moreAuto Trait Implementations§
impl Freeze for FileRecord
impl RefUnwindSafe for FileRecord
impl Send for FileRecord
impl Sync for FileRecord
impl Unpin for FileRecord
impl UnwindSafe for FileRecord
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