pub struct File {
pub abs_dir: PathBuf,
pub rel_dir: PathBuf,
pub file_depth: usize,
pub file_name: String,
pub file_ext: String,
pub file_type: FileKind,
pub file_mode: u32,
pub file_size: u64,
pub file_time: DateTime<Utc>,
pub file_ver: Option<String>,
pub link_data: Option<(PathBuf, FileKind)>,
}
Fields§
§abs_dir: PathBuf
§rel_dir: PathBuf
§file_depth: usize
§file_name: String
§file_ext: String
§file_type: FileKind
§file_mode: u32
§file_size: u64
§file_time: DateTime<Utc>
§file_ver: Option<String>
§link_data: Option<(PathBuf, FileKind)>
Implementations§
source§impl File
impl File
pub fn new( abs_dir: PathBuf, rel_dir: PathBuf, file_depth: usize, file_name: String, file_ext: String, file_type: FileKind, file_mode: u32, file_size: u64, file_time: DateTime<Utc>, file_ver: Option<String>, link_data: Option<(PathBuf, FileKind)>, ) -> File
pub fn get_path(&self) -> PathBuf
pub fn select_dir(&self, abs_path: bool) -> &Path
pub fn select_parent_for_indent(&self) -> Option<&Path>
pub fn select_name_for_indent(&self) -> Option<&str>
pub fn group_dir_before_file(&self) -> u8
Trait Implementations§
source§impl PartialEq for File
impl PartialEq for File
impl Eq for File
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.