logo
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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.