Struct ntfs::structured_values::NtfsObjectId
source · pub struct NtfsObjectId { /* private fields */ }
Expand description
Structure of an $OBJECT_ID attribute.
This optional attribute contains a globally unique identifier of the file.
An $OBJECT_ID attribute is always resident.
Reference: https://flatcap.github.io/linux-ntfs/ntfs/attributes/object_id.html
Implementations§
source§impl NtfsObjectId
impl NtfsObjectId
sourcepub fn birth_object_id(&self) -> Option<&NtfsGuid>
pub fn birth_object_id(&self) -> Option<&NtfsGuid>
Returns the (optional) first Object ID that has ever been assigned to this file.
sourcepub fn birth_volume_id(&self) -> Option<&NtfsGuid>
pub fn birth_volume_id(&self) -> Option<&NtfsGuid>
Returns the (optional) Object ID of the $Volume file of the partition where this file was created.
Trait Implementations§
source§impl Clone for NtfsObjectId
impl Clone for NtfsObjectId
source§fn clone(&self) -> NtfsObjectId
fn clone(&self) -> NtfsObjectId
Returns a copy 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 NtfsObjectId
impl Debug for NtfsObjectId
source§impl<'n, 'f> NtfsStructuredValue<'n, 'f> for NtfsObjectId
impl<'n, 'f> NtfsStructuredValue<'n, 'f> for NtfsObjectId
const TY: NtfsAttributeType = NtfsAttributeType::ObjectId
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,
Create a structured value from an arbitrary
NtfsAttributeValue
.source§impl<'n, 'f> NtfsStructuredValueFromResidentAttributeValue<'n, 'f> for NtfsObjectId
impl<'n, 'f> NtfsStructuredValueFromResidentAttributeValue<'n, 'f> for NtfsObjectId
source§fn from_resident_attribute_value(
value: NtfsResidentAttributeValue<'f>
) -> Result<Self>
fn from_resident_attribute_value( value: NtfsResidentAttributeValue<'f> ) -> Result<Self>
Create a structured value from a resident attribute value. Read more
Auto Trait Implementations§
impl RefUnwindSafe for NtfsObjectId
impl Send for NtfsObjectId
impl Sync for NtfsObjectId
impl Unpin for NtfsObjectId
impl UnwindSafe for NtfsObjectId
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