Struct rif::rel::SingleFile[][src]

pub struct SingleFile {
    pub status: FileStatus,
    pub last_modified: NaiveDateTime,
    pub timestamp: NaiveDateTime,
    pub references: HashSet<PathBuf>,
    // some fields omitted
}
Expand description

Struct that contains information about single file in rif

Fields

status: FileStatus

Current status of the file

last_modified: NaiveDateTime

Current last modified time stored in rif.

This is not same with system’s last modified time

timestamp: NaiveDateTime

Timestamp of the file

This is a critera to compare file status

references: HashSet<PathBuf>

Files set that contains referencing files

Implementations

Update single file structs name to new one

Args

  • new_name - New name to update

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.