pub struct FileRecord {
pub path: String,
pub packages: Vec<String>,
pub size: u64,
pub kind: FileKind,
pub executable: bool,
pub target: String,
}Expand description
A file-to-package mapping from a packages database or autonomous index.
Extended databases (produced by spam index) include full metadata;
legacy databases (from spam db build) only populate path and packages.
Fields§
§path: StringRelative path within a Nix store output, e.g. "/bin/hello".
packages: Vec<String>Package names that ship this file.
size: u64File size in bytes (0 for directories and symlinks, and for legacy records).
kind: FileKindFile type.
executable: boolWhether the file has the executable bit set (meaningful for FileKind::Regular only).
target: StringSymlink target; empty unless kind == FileKind::Symlink.
Trait Implementations§
Source§impl Clone for FileRecord
impl Clone for FileRecord
Source§fn clone(&self) -> FileRecord
fn clone(&self) -> FileRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FileRecord
impl Debug for FileRecord
impl Eq for FileRecord
Source§impl PartialEq for FileRecord
impl PartialEq for FileRecord
Source§fn eq(&self, other: &FileRecord) -> bool
fn eq(&self, other: &FileRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FileRecord
Auto Trait Implementations§
impl Freeze for FileRecord
impl RefUnwindSafe for FileRecord
impl Send for FileRecord
impl Sync for FileRecord
impl Unpin for FileRecord
impl UnsafeUnpin for FileRecord
impl UnwindSafe for FileRecord
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