pub struct File {
pub folder_path: Vec<String>,
pub file_name: String,
pub size: i64,
pub created_at: String,
pub updated_at: String,
pub modified_at: String,
pub url: String,
}
Fields§
§folder_path: Vec<String>
§file_name: String
§size: i64
§created_at: String
§updated_at: String
§modified_at: String
§url: String
Implementations§
Source§impl File
impl File
pub fn set_folder_path( &mut self, folder_map: &HashMap<i64, FolderResp>, folder_id: i64, )
pub fn local_file_matches(&self) -> Result<bool, Error>
pub fn local_path(&self) -> PathBuf
pub fn sanitized_folder_path(&self) -> Vec<String>
pub fn sanitized_file_name(&self) -> String
Trait Implementations§
Source§impl Into<DownloadTask> for File
impl Into<DownloadTask> for File
Source§fn into(self) -> DownloadTask
fn into(self) -> DownloadTask
Converts this type into the (usually inferred) input type.
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