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

source

pub fn birth_object_id(&self) -> Option<&NtfsGuid>

Returns the (optional) first Object ID that has ever been assigned to this file.

source

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.

source

pub fn domain_id(&self) -> Option<&NtfsGuid>

Returns the (optional) Domain ID of this file.

source

pub fn object_id(&self) -> &NtfsGuid

Returns the Object ID, a globally unique identifier of the file.

Trait Implementations§

source§

impl Clone for NtfsObjectId

source§

fn clone(&self) -> NtfsObjectId

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NtfsObjectId

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'n, 'f> NtfsStructuredValue<'n, 'f> for NtfsObjectId

source§

const TY: NtfsAttributeType = NtfsAttributeType::ObjectId

source§

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

source§

fn from_resident_attribute_value( value: NtfsResidentAttributeValue<'f> ) -> Result<Self>

Create a structured value from a resident attribute value. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.