Struct settingsfile::EmptyConfig
source · pub struct EmptyConfig {}
Trait Implementations
sourceimpl Clone for EmptyConfig
impl Clone for EmptyConfig
sourcefn clone(&self) -> EmptyConfig
fn clone(&self) -> EmptyConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Format for EmptyConfig
impl Format for EmptyConfig
sourcefn folder(&self) -> String
fn folder(&self) -> String
Should return the folder name of the configuration file with
respect to the %user_directory% environmental variable: Read more
sourcefn from_str<T>(&self, _: &str) -> Result<SettingsRaw, Error>where
T: Format + Clone,
fn from_str<T>(&self, _: &str) -> Result<SettingsRaw, Error>where
T: Format + Clone,
The decoding function, will return a deserialized form
of a the
Settings
Rust Struct. Read moresourcefn to_string<T: Sized>(&self, _: &T) -> Result<String, Error>where
T: SupportedType + Serialize,
fn to_string<T: Sized>(&self, _: &T) -> Result<String, Error>where
T: SupportedType + Serialize,
Returns the seralized form of the passed in
object
.
Because this uses Serde.rs the object
must have the
serde::de::Serialize
trait, and must also implement the
settingsfile::SupportedType
trait. Read moresourcefn extension(&self) -> Option<String>
fn extension(&self) -> Option<String>
Option to allow for an extension separate from filename,
you can always put the extension in the filename if you
perfer. Read more
sourcefn local_filename(&self) -> Option<String>
fn local_filename(&self) -> Option<String>
Option to allow for a different filename for a local
file. only used with
ShadowSetting
. Functions the same
as filename
, does not include an extension. Read moresourcefn local_extension(&self) -> Option<String>
fn local_extension(&self) -> Option<String>
Option to allow for an extension when using a different
local file name. only used with
ShadowSetting
. Doesn’t
do anything if local_filename
is None
Read moresourcefn get_path(&self) -> String
fn get_path(&self) -> String
Will give the correct path depending on what was implemented
in the configuration Read more
sourcefn get_path_and_file(&self) -> String
fn get_path_and_file(&self) -> String
Will give the correct path including file depending on what was implemented
in the configuration Read more
sourcefn get_filename(&self) -> String
fn get_filename(&self) -> String
Returns the complete file name with or without
the extension (if defined) Read more
sourcefn get_local_filename(&self) -> Option<String>
fn get_local_filename(&self) -> Option<String>
sourcefn get_local_path_and_filename(&self) -> String
fn get_local_path_and_filename(&self) -> String
Returns the path where the local configuration
would be. Read more
Auto Trait Implementations
impl RefUnwindSafe for EmptyConfig
impl Send for EmptyConfig
impl Sync for EmptyConfig
impl Unpin for EmptyConfig
impl UnwindSafe for EmptyConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more