Struct DirectoryEntry (0.5.0)

Represents a single entry in a directory.

Fields

entry

The entry's contents.

Implementations

new

 fn new() -> Self

set_entry

 fn set_entry<T: std::convert::Into<std::option::Option<crate::model::directory_entry::Entry>>>(self, v: T) -> Self

Sets the value of [entry][crate::model::DirectoryEntry::entry].

Note that all the setters affecting entry are mutually exclusive.

file

 fn file(self: &Self) -> std::option::Option<&std::string::String>

The value of [entry][crate::model::DirectoryEntry::entry] if it holds a File, None if the field is not set or holds a different branch.

set_file

 fn set_file<T: std::convert::Into<std::string::String>>(self, v: T) -> Self

Sets the value of [entry][crate::model::DirectoryEntry::entry] to hold a File.

Note that all the setters affecting entry are mutually exclusive.

directory

 fn directory(self: &Self) -> std::option::Option<&std::string::String>

The value of [entry][crate::model::DirectoryEntry::entry] if it holds a Directory, None if the field is not set or holds a different branch.

set_directory

 fn set_directory<T: std::convert::Into<std::string::String>>(self, v: T) -> Self

Sets the value of [entry][crate::model::DirectoryEntry::entry] to hold a Directory.

Note that all the setters affecting entry are mutually exclusive.