Struct ajour_core::config::Config[][src]

pub struct Config {
    pub wow: Wow,
    pub addons: Addons,
    pub theme: Option<String>,
    pub column_config: ColumnConfig,
    pub window_size: Option<(u32, u32)>,
    pub scale: Option<f64>,
    pub backup_directory: Option<PathBuf>,
    pub backup_addons: bool,
    pub backup_wtf: bool,
    pub hide_ignored_addons: bool,
    pub self_update_channel: SelfUpdateChannel,
    pub weak_auras_account: HashMap<Flavor, String>,
    pub alternating_row_colors: bool,
    pub language: Language,
    pub catalog_source: Option<Source>,
    pub auto_update: bool,
}

Config struct.

Fields

wow: Wowaddons: Addonstheme: Option<String>column_config: ColumnConfigwindow_size: Option<(u32, u32)>scale: Option<f64>backup_directory: Option<PathBuf>backup_addons: boolbackup_wtf: boolhide_ignored_addons: boolself_update_channel: SelfUpdateChannelweak_auras_account: HashMap<Flavor, String>alternating_row_colors: boollanguage: Languagecatalog_source: Option<Source>auto_update: bool

Implementations

impl Config[src]

pub fn get_flavor_directory_for_flavor(
    &self,
    flavor: &Flavor,
    path: &PathBuf
) -> PathBuf
[src]

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]

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]

impl PartialEq<Config> for Config[src]

impl PersistentData for Config[src]

impl Serialize for Config[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]