Struct mtree::Params[][src]

pub struct Params {
    pub checksum: Option<u64>,
    pub device: Option<Device>,
    pub contents: Option<PathBuf>,
    pub flags: Option<Vec<u8>>,
    pub gid: Option<u64>,
    pub gname: Option<SmallVec<[u8; 32]>>,
    pub ignore: bool,
    pub inode: Option<u64>,
    pub link: Option<PathBuf>,
    pub md5: Option<u128>,
    pub mode: Option<FileMode>,
    pub nlink: Option<u64>,
    pub no_change: bool,
    pub optional: bool,
    pub resident_device: Option<Device>,
    pub rmd160: Option<[u8; 20]>,
    pub sha1: Option<[u8; 20]>,
    pub sha256: Option<[u8; 32]>,
    pub sha384: Option<Array48<u8>>,
    pub sha512: Option<Array64<u8>>,
    pub size: Option<u64>,
    pub time: Option<SystemTime>,
    pub file_type: Option<Type>,
    pub uid: Option<u64>,
    pub uname: Option<SmallVec<[u8; 32]>>,
}

All possible parameters to an entry.

All parameters are optional. ignore, nochange and optional all have no value, and so true represets their presence.

Fields

cksum The checksum of the file using the default algorithm specified by the cksum(1) utility.

device The device number for block or char file types.

contents The full pathname of a file that holds the contents of this file.

flags The file flags as a symbolic name.

gid The file group as a numeric value.

gname The file group as a symbolic name.

The name can be up to 32 chars and must match regex [a-z_][a-z0-9_-]*[$]?.

ignore Ignore any file hierarchy below this line.

inode The inode number.

link The target of the symbolic link when type=link.

md5|md5digest The MD5 message digest of the file.

mode The current file's permissions as a numeric (octal) or symbolic value.

nlink The number of hard links the file is expected to have.

nochange Make sure this file or directory exists but otherwise ignore all attributes.

optional The file is optional; do not complain about the file if it is not in the file hierarchy.

resdevice The "resident" device number of the file, e.g. the ID of the device that contains the file. Its format is the same as the one for device.

rmd160|rmd160digest|ripemd160digest The RIPEMD160 message digest of the file.

sha1|sha1digest The FIPS 160-1 ("SHA-1") message digest of the file.

sha256|sha256digest The FIPS 180-2 ("SHA-256") message digest of the file.

sha384|sha384digest The FIPS 180-2 ("SHA-384") message digest of the file.

sha512|sha512digest The FIPS 180-2 ("SHA-512") message digest of the file.

size The size, in bytes, of the file.

time The last modification time of the file.

type The type of the file.

The file owner as a numeric value.

The file owner as a symbolic name.

The name can be up to 32 chars and must match regex [a-z_][a-z0-9_-]*[$]?.

Trait Implementations

impl Default for Params
[src]

Returns the "default value" for a type. Read more

impl Debug for Params
[src]

Formats the value using the given formatter. Read more

impl Clone for Params
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Params
[src]

impl PartialEq for Params
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Ord for Params
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for Params
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Hash for Params
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for Params
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Params

impl Sync for Params