#[repr(u16)]pub enum BaseDirectory {
Show 18 variants
Audio = 1,
Cache = 2,
Config = 3,
Data = 4,
LocalData = 5,
Desktop = 6,
Document = 7,
Download = 8,
Executable = 9,
Font = 10,
Home = 11,
Picture = 12,
Public = 13,
Runtime = 14,
Template = 15,
Video = 16,
Resource = 17,
App = 18,
}
Expand description
A Base Directory to use. The base directory is the optional root of a FS operation. If informed by the API call, all paths will be relative to the path of the given directory.
For more information, check the dirs_next documentation.
Variants§
Audio = 1
The Audio directory.
Cache = 2
The Cache directory.
Config = 3
The Config directory.
Data = 4
The Data directory.
LocalData = 5
The LocalData directory.
Desktop = 6
The Desktop directory.
Document = 7
The Document directory.
Download = 8
The Download directory.
Executable = 9
The Executable directory.
Font = 10
The Font directory.
Home = 11
The Home directory.
Picture = 12
The Picture directory.
Public = 13
The Public directory.
Runtime = 14
The Runtime directory.
Template = 15
The Template directory.
Video = 16
The Video directory.
Resource = 17
The Resource directory.
App = 18
The default App config directory. Resolves to ${CONFIG_DIR}/${APP_NAME}
Trait Implementations§
Source§impl Clone for BaseDirectory
impl Clone for BaseDirectory
Source§fn clone(&self) -> BaseDirectory
fn clone(&self) -> BaseDirectory
Returns a copy 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 BaseDirectory
impl Debug for BaseDirectory
Source§impl<'de> Deserialize<'de> for BaseDirectory
impl<'de> Deserialize<'de> for BaseDirectory
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BaseDirectory
impl RefUnwindSafe for BaseDirectory
impl Send for BaseDirectory
impl Sync for BaseDirectory
impl Unpin for BaseDirectory
impl UnwindSafe for BaseDirectory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more