pub struct StaticConfig {
pub users_per_page: usize,
pub users_in_top_users: usize,
pub top_drinks_per_user: usize,
pub use_persistence: bool,
pub persistence_file_path: String,
}Fields§
§users_per_page: usize§users_in_top_users: usize§top_drinks_per_user: usize§use_persistence: bool§persistence_file_path: StringImplementations§
Source§impl StaticConfig
impl StaticConfig
pub fn default_persistence(filepath: &str) -> Self
Trait Implementations§
Source§impl Debug for StaticConfig
impl Debug for StaticConfig
Auto Trait Implementations§
impl Freeze for StaticConfig
impl RefUnwindSafe for StaticConfig
impl Send for StaticConfig
impl Sync for StaticConfig
impl Unpin for StaticConfig
impl UnwindSafe for StaticConfig
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