pub struct SaveFileOptions {
pub title: Option<String>,
pub starting_directory: Option<PathBuf>,
pub default_name: Option<String>,
pub filters: Vec<DialogFilter>,
}Expand description
Configuration options for saving a file.
Fields§
§title: Option<String>§starting_directory: Option<PathBuf>§default_name: Option<String>§filters: Vec<DialogFilter>Implementations§
Source§impl SaveFileOptions
impl SaveFileOptions
pub fn new() -> SaveFileOptions
pub fn with_title(self, title: impl Into<String>) -> SaveFileOptions
pub fn with_directory(self, directory: impl Into<PathBuf>) -> SaveFileOptions
pub fn with_default_name( self, default_name: impl Into<String>, ) -> SaveFileOptions
pub fn with_filter( self, name: impl Into<String>, extensions: &[&str], ) -> SaveFileOptions
Trait Implementations§
Source§impl Clone for SaveFileOptions
impl Clone for SaveFileOptions
Source§fn clone(&self) -> SaveFileOptions
fn clone(&self) -> SaveFileOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SaveFileOptions
impl Debug for SaveFileOptions
Source§impl Default for SaveFileOptions
impl Default for SaveFileOptions
Source§fn default() -> SaveFileOptions
fn default() -> SaveFileOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for SaveFileOptions
impl Freeze for SaveFileOptions
impl Move for SaveFileOptions
impl RefUnwindSafe for SaveFileOptions
impl Send for SaveFileOptions
impl Sync for SaveFileOptions
impl Unpin for SaveFileOptions
impl UnsafeUnpin for SaveFileOptions
impl UnwindSafe for SaveFileOptions
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