pub struct NtfsStandardInformation { /* private fields */ }
Expand description
Structure of a $STANDARD_INFORMATION attribute.
Among other things, this is the place where the file times and “File Attributes” (Read-Only, Hidden, System, Archive, etc.) are stored.
A $STANDARD_INFORMATION attribute is always resident.
Reference: https://flatcap.github.io/linux-ntfs/ntfs/attributes/standard_information.html
Implementations§
Source§impl NtfsStandardInformation
impl NtfsStandardInformation
Sourcepub fn access_time(&self) -> NtfsTime
pub fn access_time(&self) -> NtfsTime
Returns the time this file was last accessed.
Sourcepub fn class_id(&self) -> Option<u32>
pub fn class_id(&self) -> Option<u32>
Returns the Class ID of the file, if stored via NTFS 3.x file information.
Sourcepub fn creation_time(&self) -> NtfsTime
pub fn creation_time(&self) -> NtfsTime
Returns the time this file was created.
Sourcepub fn file_attributes(&self) -> NtfsFileAttributeFlags
pub fn file_attributes(&self) -> NtfsFileAttributeFlags
Returns flags that a user can set for a file (Read-Only, Hidden, System, Archive, etc.). Commonly called “File Attributes” in Windows Explorer.
Sourcepub fn maximum_versions(&self) -> Option<u32>
pub fn maximum_versions(&self) -> Option<u32>
Returns the maximum allowed versions for this file, if stored via NTFS 3.x file information.
A value of zero means that versioning is disabled for this file.
Sourcepub fn mft_record_modification_time(&self) -> NtfsTime
pub fn mft_record_modification_time(&self) -> NtfsTime
Returns the time the MFT record of this file was last modified.
Sourcepub fn modification_time(&self) -> NtfsTime
pub fn modification_time(&self) -> NtfsTime
Returns the time this file was last modified.
Sourcepub fn owner_id(&self) -> Option<u32>
pub fn owner_id(&self) -> Option<u32>
Returns the Owner ID of the file, if stored via NTFS 3.x file information.
Sourcepub fn quota_charged(&self) -> Option<u64>
pub fn quota_charged(&self) -> Option<u64>
Returns the quota charged by this file, if stored via NTFS 3.x file information.
Sourcepub fn security_id(&self) -> Option<u32>
pub fn security_id(&self) -> Option<u32>
Returns the Security ID of the file, if stored via NTFS 3.x file information.
Trait Implementations§
Source§impl Clone for NtfsStandardInformation
impl Clone for NtfsStandardInformation
Source§fn clone(&self) -> NtfsStandardInformation
fn clone(&self) -> NtfsStandardInformation
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NtfsStandardInformation
impl Debug for NtfsStandardInformation
Source§impl<'n, 'f> NtfsStructuredValue<'n, 'f> for NtfsStandardInformation
impl<'n, 'f> NtfsStructuredValue<'n, 'f> for NtfsStandardInformation
const TY: NtfsAttributeType = NtfsAttributeType::StandardInformation
Source§fn from_attribute_value<T>(
fs: &mut T,
value: NtfsAttributeValue<'n, 'f>,
) -> Result<Self>
fn from_attribute_value<T>( fs: &mut T, value: NtfsAttributeValue<'n, 'f>, ) -> Result<Self>
NtfsAttributeValue
.