pub struct UserDirs {
pub desktop: Option<PathBuf>,
pub download: Option<PathBuf>,
pub documents: Option<PathBuf>,
pub music: Option<PathBuf>,
pub pictures: Option<PathBuf>,
pub videos: Option<PathBuf>,
}Expand description
The subset of XDG user directories a sidebar cares about. None for
a directory the file doesn’t mention — a partially customised file is
common (someone deletes the XDG_TEMPLATES_DIR line and nothing
else), and a missing key is not this module’s business to guess at;
a sidebar built from it simply won’t offer a shortcut for it.
Fields§
§desktop: Option<PathBuf>§download: Option<PathBuf>§documents: Option<PathBuf>§music: Option<PathBuf>§pictures: Option<PathBuf>§videos: Option<PathBuf>Trait Implementations§
impl Eq for UserDirs
impl StructuralPartialEq for UserDirs
Auto Trait Implementations§
impl Freeze for UserDirs
impl RefUnwindSafe for UserDirs
impl Send for UserDirs
impl Sync for UserDirs
impl Unpin for UserDirs
impl UnsafeUnpin for UserDirs
impl UnwindSafe for UserDirs
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