Skip to main content

SingleFilesInfo

Struct SingleFilesInfo 

Source
pub struct SingleFilesInfo {
    pub data_size: u64,
    pub root: SingleFileEntry,
    pub sources: Vec<SingleFileSource>,
    pub subjects: Vec<SingleFileSubject>,
    pub permission_groups: Vec<SingleFilePermissionGroup>,
}
Expand description

Logical single-file catalog metadata.

Fields§

§data_size: u64

Byte size of the single-file data section.

§root: SingleFileEntry

Root catalog entry.

§sources: Vec<SingleFileSource>

Source records.

§subjects: Vec<SingleFileSubject>

Subject records.

§permission_groups: Vec<SingleFilePermissionGroup>

Permission groups.

Implementations§

Source§

impl SingleFilesInfo

Source

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

Returns the catalog entry at a single-file path.

§Errors

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

Source

pub fn source_by_identifier(&self, identifier: i32) -> Option<&SingleFileSource>

Returns a source record by its source identifier.

Source

pub fn source_by_index(&self, index: i32) -> Option<&SingleFileSource>

Returns a source record by its source table index.

Source

pub fn source_for_entry( &self, entry: &SingleFileEntry, ) -> Option<&SingleFileSource>

Returns the source record associated with a catalog entry.

Source

pub fn subject_by_identifier( &self, identifier: u32, ) -> Option<&SingleFileSubject>

Returns a subject record by its subject identifier.

Source

pub fn subject_for_entry( &self, entry: &SingleFileEntry, ) -> Option<&SingleFileSubject>

Returns the subject record associated with a catalog entry.

Source

pub fn number_of_permission_groups(&self) -> usize

Returns the number of permission groups.

Source

pub fn permission_group_by_index( &self, index: i32, ) -> Option<&SingleFilePermissionGroup>

Returns a permission group by its table index.

Source

pub fn permission_group_for_entry( &self, entry: &SingleFileEntry, ) -> Option<&SingleFilePermissionGroup>

Returns the permission group associated with a catalog entry.

Source

pub fn access_control_entries_for_entry( &self, entry: &SingleFileEntry, ) -> &[SingleFilePermission]

Returns access-control entries associated with a catalog entry.

Source

pub fn number_of_access_control_entries_for_entry( &self, entry: &SingleFileEntry, ) -> usize

Returns the number of access-control entries for a catalog entry.

Source

pub fn access_control_entry_for_entry( &self, entry: &SingleFileEntry, index: usize, ) -> Option<&SingleFilePermission>

Returns one access-control entry for a catalog entry by index.

Trait Implementations§

Source§

impl Clone for SingleFilesInfo

Source§

fn clone(&self) -> SingleFilesInfo

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 SingleFilesInfo

Source§

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

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

impl Default for SingleFilesInfo

Source§

fn default() -> SingleFilesInfo

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

impl Eq for SingleFilesInfo

Source§

impl PartialEq for SingleFilesInfo

Source§

fn eq(&self, other: &SingleFilesInfo) -> 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 SingleFilesInfo

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.