pub struct FileEntry {
name: String,
timestamp: String,
length: i32,
entry_type: FileDirTypes,
}
Expand description
Represents the file entry allowed in the hierarchy for the Composite design pattern example.
Fields§
§name: String
Name of the file
timestamp: String
Timestamp of the file (expressed as a string)
length: i32
Length of the file
entry_type: FileDirTypes
Type of the entry as a value from the FileDirTypes enumeration.
Implementations§
Trait Implementations§
source§impl FileDirEntry for FileEntry
impl FileDirEntry for FileEntry
source§fn entry_type(&self) -> &FileDirTypes
fn entry_type(&self) -> &FileDirTypes
Returns a reference to the FileDirTypes value representing the type of
entry this trait represents.