pub struct Attributes {
pub read_only: bool,
pub hidden: bool,
pub system: bool,
pub archive: bool,
}Expand description
A list of the various attributes specified for a file/directory
Fields§
§read_only: boolThis is a read-only file
This file is to be hidden unless a request is issued explicitly requesting inclusion of “hidden files”
system: boolThis is a system file and shouldn’t be listed unless a request is issued explicitly requesting inclusion of ”system files”
archive: boolThis file has been modified since last archival or has never been archived.
This field should only concern archival software
Trait Implementations§
Source§impl Clone for Attributes
impl Clone for Attributes
Source§fn clone(&self) -> Attributes
fn clone(&self) -> Attributes
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 Attributes
impl Debug for Attributes
impl Copy for Attributes
Auto Trait Implementations§
impl Freeze for Attributes
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
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