pub struct AppConfig {Show 17 fields
pub always_load_last_save: bool,
pub auto_login: bool,
pub date_time_format: DateTimeFormat,
pub default_theme: String,
pub default_view: View,
pub disable_animations: bool,
pub disable_scroll_bar: bool,
pub enable_mouse_support: bool,
pub keybindings: KeyBindings,
pub no_of_boards_to_show: u16,
pub no_of_cards_to_show: u16,
pub date_picker_calender_format: CalenderType,
pub save_directory: PathBuf,
pub save_on_exit: bool,
pub show_line_numbers: bool,
pub tickrate: u16,
pub warning_delta: u16,
}Fields§
§always_load_last_save: bool§auto_login: bool§date_time_format: DateTimeFormat§default_theme: String§default_view: View§disable_animations: bool§disable_scroll_bar: bool§enable_mouse_support: bool§keybindings: KeyBindings§no_of_boards_to_show: u16§no_of_cards_to_show: u16§date_picker_calender_format: CalenderType§save_directory: PathBuf§save_on_exit: bool§show_line_numbers: bool§tickrate: u16§warning_delta: u16Implementations§
Source§impl AppConfig
impl AppConfig
pub fn to_view_list(&self) -> Vec<Vec<String>>
pub fn get_value_as_string(&self, config_enum: ConfigEnum) -> String
pub fn get_toggled_value_as_string(&self, config_enum: ConfigEnum) -> String
pub fn edit_config( app: &mut App<'_>, config_enum: ConfigEnum, edited_value: &str, )
pub fn edit_keybinding( &mut self, key_index: usize, value: &[Key], ) -> Result<KeyBindingEnum, String>
pub fn from_json_string(json_string: &str) -> Result<Self, String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppConfig
impl<'de> Deserialize<'de> for AppConfig
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 AppConfig
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnwindSafe for AppConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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