Struct ajour_core::config::Config [−][src]
Config struct.
Fields
wow: Wow
addons: Addons
theme: Option<String>
column_config: ColumnConfig
window_size: Option<(u32, u32)>
scale: Option<f64>
backup_directory: Option<PathBuf>
backup_addons: bool
backup_wtf: bool
hide_ignored_addons: bool
self_update_channel: SelfUpdateChannel
weak_auras_account: HashMap<Flavor, String>
alternating_row_colors: bool
language: Language
catalog_source: Option<Source>
auto_update: bool
Implementations
impl Config
[src]
pub fn get_flavor_directory_for_flavor(
&self,
flavor: &Flavor,
path: &PathBuf
) -> PathBuf
[src]
&self,
flavor: &Flavor,
path: &PathBuf
) -> PathBuf
Returns a PathBuf
to the flavor directory.
pub fn get_root_directory_for_flavor(&self, flavor: &Flavor) -> Option<PathBuf>
[src]
Returns a Option<PathBuf>
to the root directory of the Flavor.
pub fn get_addon_directory_for_flavor(&self, flavor: &Flavor) -> Option<PathBuf>
[src]
Returns a Option<PathBuf>
to the directory containing the addons.
This will return None
if no wow_directory
is set in the config.
pub fn get_download_directory_for_flavor(
&self,
flavor: Flavor
) -> Option<PathBuf>
[src]
&self,
flavor: Flavor
) -> Option<PathBuf>
Returns a Option<PathBuf>
to the directory which will hold the
temporary zip archives.
This will return None
if flavor does not have a directory.
pub fn get_wtf_directory_for_flavor(&self, flavor: &Flavor) -> Option<PathBuf>
[src]
Returns a Option<PathBuf>
to the WTF directory.
This will return None
if no wow_directory
is set in the config.
Trait Implementations
impl Clone for Config
[src]
impl Debug for Config
[src]
impl Default for Config
[src]
impl<'de> Deserialize<'de> for Config
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Config> for Config
[src]
impl PersistentData for Config
[src]
fn relative_path() -> PathBuf
[src]
fn path() -> Result<PathBuf, FilesystemError>
[src]
fn load() -> Result<Self, FilesystemError>
[src]
fn load_or_default<T: PersistentData + Default>() -> Result<T, FilesystemError>
[src]
fn save(&self) -> Result<(), FilesystemError>
[src]
impl Serialize for Config
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Config
[src]
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,