Skip to main content

SingleFileEntry

Struct SingleFileEntry 

Source
pub struct SingleFileEntry {
Show 24 fields pub identifier: Option<u64>, pub file_entry_type: Option<SingleFileEntryType>, pub flags: Option<u32>, pub guid: Option<String>, pub name: Option<String>, pub short_name: Option<String>, pub size: Option<u64>, pub logical_offset: Option<i64>, pub physical_offset: Option<i64>, pub duplicate_data_offset: Option<i64>, pub source_identifier: Option<i32>, pub subject_identifier: Option<u32>, pub permission_group_index: Option<i32>, pub record_type: Option<u32>, pub creation_time: Option<i64>, pub modification_time: Option<i64>, pub access_time: Option<i64>, pub entry_modification_time: Option<i64>, pub deletion_time: Option<i64>, pub md5: Option<String>, pub sha1: Option<String>, pub extents: Vec<SingleFileExtent>, pub attributes: Vec<SingleFileAttribute>, pub children: Vec<SingleFileEntry>,
}
Expand description

Entry in a logical single-file catalog.

Fields§

§identifier: Option<u64>

Entry identifier.

§file_entry_type: Option<SingleFileEntryType>

Entry type.

§flags: Option<u32>

Raw entry flags.

§guid: Option<String>

Entry GUID.

§name: Option<String>

Entry name.

§short_name: Option<String>

Short entry name.

§size: Option<u64>

Logical file size in bytes.

§logical_offset: Option<i64>

Logical media offset for the entry data.

§physical_offset: Option<i64>

Physical source offset for the entry data.

§duplicate_data_offset: Option<i64>

Duplicate-data logical media offset.

§source_identifier: Option<i32>

Identifier of the associated source record.

§subject_identifier: Option<u32>

Identifier of the associated subject record.

§permission_group_index: Option<i32>

Index of the associated permission group.

§record_type: Option<u32>

Raw record type.

§creation_time: Option<i64>

Creation timestamp.

§modification_time: Option<i64>

Modification timestamp.

§access_time: Option<i64>

Access timestamp.

§entry_modification_time: Option<i64>

Entry metadata modification timestamp.

§deletion_time: Option<i64>

Deletion timestamp.

§md5: Option<String>

Entry MD5 hash string.

§sha1: Option<String>

Entry SHA1 hash string.

§extents: Vec<SingleFileExtent>

Data extents for the entry.

§attributes: Vec<SingleFileAttribute>

Extended attributes for the entry.

§children: Vec<SingleFileEntry>

Child entries.

Implementations§

Source§

impl SingleFileEntry

Source

pub fn identifier(&self) -> Option<u64>

Returns the entry identifier.

Source

pub fn entry_type(&self) -> Option<SingleFileEntryType>

Returns the entry type.

Source

pub fn flags(&self) -> Option<u32>

Returns the raw entry flags.

Source

pub fn guid(&self) -> Option<&str>

Returns the entry GUID.

Source

pub fn media_data_offset(&self) -> Option<i64>

Returns the logical media offset for entry data.

Source

pub fn media_data_size(&self) -> Option<u64>

Returns the entry data size in bytes.

Source

pub fn physical_offset(&self) -> Option<i64>

Returns the physical source offset for entry data.

Source

pub fn duplicate_media_data_offset(&self) -> Option<i64>

Returns the duplicate-data logical media offset.

Source

pub fn source_identifier(&self) -> Option<i32>

Returns the associated source identifier.

Source

pub fn subject_identifier(&self) -> Option<u32>

Returns the associated subject identifier.

Source

pub fn permission_group_index(&self) -> Option<i32>

Returns the associated permission group index.

Source

pub fn record_type(&self) -> Option<u32>

Returns the raw record type.

Source

pub fn name(&self) -> Option<&str>

Returns the entry name.

Source

pub fn short_name(&self) -> Option<&str>

Returns the short entry name.

Source

pub fn size(&self) -> Option<u64>

Returns the entry size in bytes.

Source

pub fn creation_time(&self) -> Option<i64>

Returns the creation timestamp.

Source

pub fn modification_time(&self) -> Option<i64>

Returns the modification timestamp.

Source

pub fn access_time(&self) -> Option<i64>

Returns the access timestamp.

Source

pub fn entry_modification_time(&self) -> Option<i64>

Returns the entry metadata modification timestamp.

Source

pub fn deletion_time(&self) -> Option<i64>

Returns the deletion timestamp.

Source

pub fn md5_hash(&self) -> Option<&str>

Returns the entry MD5 hash string.

Source

pub fn sha1_hash(&self) -> Option<&str>

Returns the entry SHA1 hash string.

Source

pub fn number_of_sub_file_entries(&self) -> usize

Returns the number of child entries.

Source

pub fn sub_file_entry(&self, index: usize) -> Option<&SingleFileEntry>

Returns a child entry by index.

Source

pub fn sub_file_entry_by_name(&self, name: &str) -> Option<&SingleFileEntry>

Returns a child entry by name.

Source

pub fn sub_file_entry_by_path( &self, path: &str, ) -> Result<Option<&SingleFileEntry>>

Returns a descendant entry by single-file path.

§Errors

Returns an error if the path contains an empty entry name.

Source

pub fn number_of_extents(&self) -> usize

Returns the number of data extents.

Source

pub fn extent(&self, index: usize) -> Option<&SingleFileExtent>

Returns a data extent by index.

Source

pub fn number_of_attributes(&self) -> usize

Returns the number of extended attributes.

Source

pub fn attribute(&self, index: usize) -> Option<&SingleFileAttribute>

Returns an extended attribute by index.

Source

pub fn child_by_name(&self, name: &str) -> Option<&SingleFileEntry>

Returns a direct child entry by name.

Source

pub fn child_by_path(&self, path: &str) -> Result<Option<&SingleFileEntry>>

Returns a descendant entry by single-file path.

§Errors

Returns an error if the path contains an empty entry name.

Trait Implementations§

Source§

impl Clone for SingleFileEntry

Source§

fn clone(&self) -> SingleFileEntry

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for SingleFileEntry

Source§

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

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

impl Default for SingleFileEntry

Source§

fn default() -> SingleFileEntry

Returns the “default value” for a type. Read more
Source§

impl Eq for SingleFileEntry

Source§

impl PartialEq for SingleFileEntry

Source§

fn eq(&self, other: &SingleFileEntry) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SingleFileEntry

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.