Struct ntfs::structured_values::NtfsStandardInformation
source · 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§fn clone_from(&mut self, source: &Self)
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>where
T: Read + Seek,
fn from_attribute_value<T>( fs: &mut T, value: NtfsAttributeValue<'n, 'f> ) -> Result<Self>where T: Read + Seek,
NtfsAttributeValue
.