#[non_exhaustive]pub struct DirectoryEntry {
pub entry: Option<Entry>,
/* private fields */
}Expand description
Represents a single entry in a directory.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entry: Option<Entry>The entry’s contents.
Implementations§
Source§impl DirectoryEntry
impl DirectoryEntry
pub fn new() -> Self
Sourcepub fn set_entry<T: Into<Option<Entry>>>(self, v: T) -> Self
pub fn set_entry<T: Into<Option<Entry>>>(self, v: T) -> Self
Sets the value of entry.
Note that all the setters affecting entry are mutually
exclusive.
Sourcepub fn file(&self) -> Option<&String>
pub fn file(&self) -> Option<&String>
The value of entry
if it holds a File, None if the field is not set or
holds a different branch.
Sourcepub fn set_file<T: Into<String>>(self, v: T) -> Self
pub fn set_file<T: Into<String>>(self, v: T) -> Self
Sets the value of entry
to hold a File.
Note that all the setters affecting entry are
mutually exclusive.
Sourcepub fn directory(&self) -> Option<&String>
pub fn directory(&self) -> Option<&String>
The value of entry
if it holds a Directory, None if the field is not set or
holds a different branch.
Sourcepub fn set_directory<T: Into<String>>(self, v: T) -> Self
pub fn set_directory<T: Into<String>>(self, v: T) -> Self
Sets the value of entry
to hold a Directory.
Note that all the setters affecting entry are
mutually exclusive.
Trait Implementations§
Source§impl Clone for DirectoryEntry
impl Clone for DirectoryEntry
Source§fn clone(&self) -> DirectoryEntry
fn clone(&self) -> DirectoryEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 DirectoryEntry
impl Debug for DirectoryEntry
Source§impl Default for DirectoryEntry
impl Default for DirectoryEntry
Source§fn default() -> DirectoryEntry
fn default() -> DirectoryEntry
Returns the “default value” for a type. Read more
Source§impl Message for DirectoryEntry
impl Message for DirectoryEntry
Source§impl PartialEq for DirectoryEntry
impl PartialEq for DirectoryEntry
impl StructuralPartialEq for DirectoryEntry
Auto Trait Implementations§
impl Freeze for DirectoryEntry
impl RefUnwindSafe for DirectoryEntry
impl Send for DirectoryEntry
impl Sync for DirectoryEntry
impl Unpin for DirectoryEntry
impl UnwindSafe for DirectoryEntry
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