pub struct File {
pub abs_dir: PathBuf,
pub rel_dir: PathBuf,
pub link_path: Option<PathBuf>,
pub file_depth: usize,
pub file_name: String,
pub file_ext: String,
pub file_type: EntryKind,
pub file_mode: u32,
pub file_size: u64,
pub file_time: DateTime<Utc>,
}Fields§
§abs_dir: PathBuf§rel_dir: PathBuf§link_path: Option<PathBuf>§file_depth: usize§file_name: String§file_ext: String§file_type: EntryKind§file_mode: u32§file_size: u64§file_time: DateTime<Utc>Implementations§
source§impl File
impl File
pub fn new( abs_dir: PathBuf, rel_dir: PathBuf, link_path: Option<PathBuf>, file_depth: usize, file_name: String, file_ext: String, file_type: EntryKind, file_mode: u32, file_size: u64, file_time: DateTime<Utc> ) -> File
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 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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.