pub struct FileDialogData {
pub title: Option<String>,
pub initial_path: Option<PathBuf>,
pub filters: Vec<FileFilter>,
}Fields§
§title: Option<String>§initial_path: Option<PathBuf>§filters: Vec<FileFilter>Implementations§
Source§impl FileDialogData
impl FileDialogData
pub fn new() -> Self
pub fn with_title(self, title: &str) -> Self
pub fn with_initial_path<P: AsRef<Path>>(self, dir: P) -> Self
pub fn with_filter(self, name: &str, filters: &[&str]) -> Self
pub fn with_filters(self, filters: Vec<FileFilter>) -> Self
Trait Implementations§
Source§impl Default for FileDialogData
impl Default for FileDialogData
Source§fn default() -> FileDialogData
fn default() -> FileDialogData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileDialogData
impl RefUnwindSafe for FileDialogData
impl Send for FileDialogData
impl Sync for FileDialogData
impl Unpin for FileDialogData
impl UnwindSafe for FileDialogData
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