Struct witas::FileSaveDialog
source · pub struct FileSaveDialog { /* private fields */ }
Expand description
The dialog for saving a file.
Implementations§
source§impl FileSaveDialog
impl FileSaveDialog
pub fn new() -> Self
pub fn title(self, title: impl Into<String>) -> Self
pub fn default_folder(self, path: impl Into<PathBuf>) -> Self
pub fn default_extension(self, ext: impl Into<String>) -> Self
pub fn file_name_label(self, label: impl Into<String>) -> Self
pub fn file_types(self, file_types: impl FilterSpecs) -> Self
pub fn file_type_index(self, index: usize) -> Self
pub fn options(self, options: FileDialogOptions) -> Self
pub fn owner(self, window: &Window) -> Self
pub async fn show(self) -> Result<Option<PathBuf>>
Trait Implementations§
source§impl IntoFuture for FileSaveDialog
impl IntoFuture for FileSaveDialog
§type IntoFuture = Pin<Box<dyn Future<Output = <FileSaveDialog as IntoFuture>::Output>, Global>>
type IntoFuture = Pin<Box<dyn Future<Output = <FileSaveDialog as IntoFuture>::Output>, Global>>
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl RefUnwindSafe for FileSaveDialog
impl Send for FileSaveDialog
impl Sync for FileSaveDialog
impl Unpin for FileSaveDialog
impl UnwindSafe for FileSaveDialog
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