#[non_exhaustive]pub struct ShownDialog {
pub kind: DialogKind,
pub title: Option<String>,
pub filters: Vec<(String, Vec<String>)>,
pub directory: Option<PathBuf>,
pub file_name: Option<String>,
}Expand description
A dialog a handler showed, as FakeOs::dialogs returns it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: DialogKindThe method that showed it.
title: Option<String>The title Dialog::title gave.
filters: Vec<(String, Vec<String>)>Each name and extensions Dialog::filter gave, in order.
directory: Option<PathBuf>The directory Dialog::directory gave.
file_name: Option<String>The name Dialog::file_name gave.
Trait Implementations§
Source§impl Clone for ShownDialog
impl Clone for ShownDialog
Source§fn clone(&self) -> ShownDialog
fn clone(&self) -> ShownDialog
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 ShownDialog
impl Debug for ShownDialog
impl Eq for ShownDialog
Source§impl PartialEq for ShownDialog
impl PartialEq for ShownDialog
impl StructuralPartialEq for ShownDialog
Auto Trait Implementations§
impl Freeze for ShownDialog
impl RefUnwindSafe for ShownDialog
impl Send for ShownDialog
impl Sync for ShownDialog
impl Unpin for ShownDialog
impl UnsafeUnpin for ShownDialog
impl UnwindSafe for ShownDialog
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.