pub struct SaveFile {
pub title: Option<String>,
pub default_name: Option<String>,
pub filters: Vec<FileFilter>,
pub start_folder: Option<PathBuf>,
}Fields§
§title: Option<String>§default_name: Option<String>§filters: Vec<FileFilter>§start_folder: Option<PathBuf>The folder the dialog opens in, as for OpenFile::start_folder.
Implementations§
Source§impl SaveFile
impl SaveFile
pub fn new() -> SaveFile
pub fn title(self, title: impl Into<String>) -> SaveFile
pub fn name(self, name: impl Into<String>) -> SaveFile
pub fn filter(self, filter: FileFilter) -> SaveFile
Sourcepub fn start_folder(self, folder: impl Into<PathBuf>) -> SaveFile
pub fn start_folder(self, folder: impl Into<PathBuf>) -> SaveFile
Opens the dialog in folder.
Trait Implementations§
impl StructuralPartialEq for SaveFile
Auto Trait Implementations§
impl Forget for SaveFile
impl Freeze for SaveFile
impl Move for SaveFile
impl RefUnwindSafe for SaveFile
impl Send for SaveFile
impl Sync for SaveFile
impl Unpin for SaveFile
impl UnsafeUnpin for SaveFile
impl UnwindSafe for SaveFile
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