Struct relm4_components::open_button::OpenButtonSettings
source · [−]pub struct OpenButtonSettings {
pub text: &'static str,
pub recently_opened_files: Option<&'static str>,
pub max_recent_files: usize,
}
Expand description
Configuration for the open button component
Fields
text: &'static str
Text of the open button.
recently_opened_files: Option<&'static str>
Path to a file where recent files should be stored. This list is updated fully automatically.
max_recent_files: usize
Maximum amount of recent files to store. This is only used if a path for storing the recently opened files was set.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OpenButtonSettings
impl Send for OpenButtonSettings
impl Sync for OpenButtonSettings
impl Unpin for OpenButtonSettings
impl UnwindSafe for OpenButtonSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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